Sunday, September 14, 2008

[Ubuntu] Emacs command

1. run octave

M-x run-octave

2. Basics
C-x C-f "find" file i.e. open/create a file in buffer
C-x C-s save the file
C-x C-w write the text to an alternate name
C-x C-v find alternate file
C-x i insert file at cursor position
C-x b create/switch buffers
C-x C-b show buffer list
C-x k kill buffer
C-z suspend emacs
C-X C-c close down emacs

2. Editing

C-Space Set beginning mark (for region marking for example)
C-W "kill" (delete) the marked region region
M-W copy the marked region
C-y "yank" (paste) the copied/killed region/line

2. Window-Commands

C-x 0 delete window
C-x 1 close all windows except the one the cursors in
C-x 2 split window horizontally
C-x 3 split window vertically
C-x o change to other window


3. Shell
M-x shell starts shell modus

No comments: