Record my usually used key-binding, if not remember, can help me a lot.
Buffer
- Display a list of existing buffers. use
list-buffers, bound toC-x C-b. - Switch buffer.
switch-to-buffer, bound toC-x b. - Kill the buffer. use
M-x kill-buffer, bound toC-x k.
Moving in buffer
- Go to LINE, counting from line 1 at beginning of buffer. use
goto-line, bound toM-g g. - Scroll text of selected window upward. use
M-x scroll-up-command, bound toC-v. - Scroll text of selected window down. use
M-x scroll-down-command, bound toM-v. - Move point to the beginning of the buffer. use
M-x beginning-of-buffer, bound toM-<. - Move point to the end of the buffer. use
M-x end-of-buffer, bound toM->.
Window
- Delete cursor at window. use
M-x delete-window, bound toC-x 0. - Make WINDOW fill its frame. use
delete-other-windows, bound toC-x 1. - Split the selected window into two windows, the selected window is above. use
M-x split-window-below, bound toC-x 2. - Split the selected window into two side-by-side windows,The selected window is on the left. use
split-window-right, bound toC-x 3. - Select another window in cyclic ordering of windows. use
M-x other-window, bound toC-x o.
Help Command
- Show functions that match PATTERN. if find funtion include “font”, type “\font”, then press Enter.
M-x apropos-function
Mode
- Toggle line number display in the mode line.
M-x line-number-mode
Utility
- change file line ending between Windows/Unix/Mac.
M-x set-buffer-file-coding-system