EMACS 基本命令

1。key

 C for CTRL, M for meta,(ESC for MAC, Alt for others ).

 C-A means that you press key CTRL ,and press key A at the same time.. M-x is the same.

2。 Cursor Moving.

C-f, Move forwad a character

C-b, move backward a character

M-f, move forward a word

M-b, move backward a word

C-n, move to next line

C-p, move to previous line

C-a, move to beginning of line

C-e, Move to end of line

M-a,Move to beginning of sentence

M-e.Move to end of sentence

C-v, move to next screen

M-v Move to previous screen

C-l. Move the current content to the center of screen

C-u Num C-f. repeat the cmd C-f for Num times

M-< Move to beginning the file(you have to press shift to type <)

M-> : Move to end of the file

3。C-g, quit the current cmd you just typed in

C-x 1 close the other window

C-d, delete the following character

M-d, delete the folling word

M-<DEL> delete the word before the cursor

C-k, kill from the cursor position to the end of line

M-k, kill to the end of the current sentence

C-@ C-w, kill the text from where you type C-@ to where you type C-w.

C-y, yank the text whick you last kill

4 Undo.

C-x, u

5 files

C-x C-f : find a file

C-x C-s: save the file

C-x C-b :list the buffers

5 Search

C-s (word) search for word, C-s next

原文地址:https://www.cnblogs.com/hiramlee0534/p/7163909.html