Sunday, October 17, 2010

Emacs - Keyboard functions

Emacs is one of the best software system that can use for text based operations. More details can be found here.
Anyway, I was summarized control keys for my use.
Note:

"M" for ALT key and "C" for CTRL key in the key board.

---------------------------------------------
C-v = move forward by page
M-V = move backward by page
C-l = Center the cursor
--------------------------------------------

C-p = previous line
C-n = next line
C-f = forword by character
C-b = backword by charactor
--------------------------------------------

M-f = forword move by word
M-b = Backword move by word
--------------------------------------------

C-a = Move to begining of line
C-e = Move to end of line
M-a = Move to begining of sentence
M-e = Move to end of sentence
--------------------------------------------

M-< = To bigining of the document
M-> = To end of the document
--------------------------------------------

C-u 8 C-f = Move by 8 charactors
C-u 8 C-v = Move by 8 lines
--------------------------------------------

C-g = cancel previous commands
--------------------------------------------

C-x 1 = Maximize current window
--------------------------------------------

C-u 8 * = Insert 8 "*" marks
--------------------------------------------

C-d = delete char after the curser
M- = Kill the word before curser
M-d = Kill the word after cursor
C-k = kill by the end of line
M-k = Kill by the end of Sentence
--------------------------------------------

C- --> Move to other end --> C-w = kill the marked area
--------------------------------------------

C-y = paste the last killed text in current curser position
M-y = replace the pasted text with before last kill
--------------------------------------------

C-x u = Undo. Can use repititive way
C-_ = Same as undo
--------------------------------------------

C-x C-f = Find a file
C-x C-s = Save the file
C-x C-c = Save changes and kill Emacs
C-z = Suspend Emacs temparaly and go to Shell. Resume by "fg"
--------------------------------------------

C-x C-b = List all buffers
C-x b = switch between buffers
C-x s = save buffers (Ask)
--------------------------------------------

M-x = Run commands
Ex: Replace String:
M-x repl s
--------------------------------------------

M-x recover file
--------------------------------------------

M-x text mode --->> Mode change commands
--------------------------------------------

C-s = search -> type word -> When again press C-s -> Goto Next
--------------------------------------------

C-x 2 = split window by 2
C-M-v = Scroll the second window
C-x o = Move cursor to sencon window wise visa
C-x 4 C-f = open different file in second window
--------------------------------------------

= Recursive mode escape
--------------------------------------------

No comments:

Post a Comment