Key combination meaning: c Represents the ctrl key, and m is the meta key, which generally refers to alt. If not, it can be replaced by ESC.
1. emacs operations
C-x C-F open the file; C-x C-s save the file; C-X c-c exit; C-/undo (c-x u) c-G cancels the current command;
To redo the redo function, use C-G and C -/;
2. Optical Mark Control
C-F: move one character forward; C-B: move one character backward; m-F: move one word forward; m-B: move one word backward; C-V: Flip down; m-V pages up;
M-r moves to the beginning of the middle line of the screen; c-l sets the current line to the middle of the screen;
3. Buffer operations
C-x K closes the current buffer; C-x C-B lists all buffer names; C-x B enters the buffer name to select the current buffer;
C-x C-the left and right arrows switch the current buffer;
4. Help commands
Execute the M-x command, query the C-h w command, and bind the C-h k query key;
Search for command apropos using the c-h a correlation command and enter a keyword. The command can be started with m-X, for example, C-H a file/n;
C-H I read the online manual. info M Emacs/N;
F10 h r read Emacs User Manual (manual );
5. text editing
Select area: 1, C-@, move the cursor (or use a C-space to select, and move the cursor here you need to close the shortcut key in the input method, otherwise, the buttons will be intercepted by the input method );
C-W clipboard; c-k delete current row; ESC-W copy; C-y paste; C-x check text block tag; ffffffffffffffffffffffffffffffffffff
6. Switch and move the buffer
Add the following three lines to the configuration file:
(Global-set-key "/C-x/C-B" 'bs-show); or another key
(Global-set-key "/m-P" 'bs-cycle-previous)
(Global-set-key "/m-n" 'bs-cycle-Next)
The function is Ctrl + X -- Ctrl + B to display the buffer list. You can select. Alt + P to return to the previous buffer, and ALT + n to the next buffer.
In addition, you can use the logo key to display the buffer list. Add the following in the configuration file:
; Switch to buffer-menu, and press the logo key, similar to (m-x + buffer-menu)
(Global-set-Key (KBD "<apps>") 'buffer-menu)
7. Configuration File Modification (Miscellaneous)
; Display the buffer name in the title bar, instead of Emacs @! #*&! (& @ # This is useless.
(Setq frame-title-format "Emacs @ % B ")