]> code.delx.au - dotemacs/blob - README.md
switch from vim, simplify vim config a little
[dotemacs] / README.md
1 # General commands
2 C-x C-c Quit Emacs
3 C-x C-s Save current buffer
4 C-g Cancel command
5 M-x Execute command
6 C-/ Undo
7 C-g C-/ Undo undo
8 C-x z Repeat last command
9 M-X 'eval-buffer Load current buffer as elisp
10
11 # Help
12 C-h C-h Help
13 C-h k Help about key binding
14 C-h v Describe variable
15 C-h f Describe function
16
17 # Search
18 C-M-s Regex search
19 C-s Search forward
20 C-r Search backward
21 M-s . Search for symbol around point
22 M-s w Start word search
23 C-s Find next item (while searching)
24 Backspace Previous search (while searching)
25 M-% Search and replace
26
27 # Buffers/windows/frames
28 C-x s Save some buffers
29 C-x C-f Find (open) file
30 C-x k Kill buffer
31 C-x b Select named buffer
32 C-x C-b Show all buffers
33 C-x o Switch to other window
34 C-x 1 Switch to single window
35 C-x 2 Split vertically
36 C-x 3 Split horizontally
37 M-x 'make-frame New frame (X11 window)
38 M-= Display info about region
39
40 # Text formatting
41 M-/ Auto-complete
42 M-; Comment line or region
43 M-q Reformat paragraph
44 M-l Lower case word
45 M-u Upper case word
46 M-c Capitalise word
47 C-x C-l Lower case region
48 C-x C-u Upper case region
49
50 # Macros
51 F3 , F4 Start recording macro
52 C-u F3 Play last macro then append keys
53 F4 Play back macro
54
55 # Selecting/deleting/killing text
56 C-Space Set mark (start selection)
57 C-Space C-Space Set mark to point
58 C-u C-space Return to mark
59 C-M-p Back to start of balanced expression
60 C-M-n Forward to end of balanced expression
61 M-@ Set mark at end of next word
62 C-w Kill from mark to point
63 C-y Yank text (paste)
64 M-y Scroll through kill ring (paste buffer)
65 M-z <char> Kill until <char>
66 C-k Kill rest of line
67 C-M-k Kill balanced expression
68 C-S-Backspace Delete current line
69 C-d Delete next character
70 M-d Delete next word
71 M-Backspace Delete previous word
72 M-Space Collpase to one space around point
73 M-\ Delete spaces around point
74 C-x C-o Collapse blank lines
75 '# delete-trailing-whitespace
76
77 # Lines
78 C-o Insert new line at point
79 C-j Newline and maybe indent
80 M-^ Join to previous line
81
82 # Movement
83 M-m Jump back to start of indentation
84 M-r Jump to window top/bottom/middle
85 M-g M-g Jump to line
86 M-g Tab Jump to column
87 C-a Beginning of line
88 C-e End of line
89 C-p Back one line
90 C-n Forward one line
91 C-b Back one character
92 C-n Forward one character
93 M-b Back a word
94 M-f Forward a word
95 M-a Backward sentence
96 M-e Forward sentence
97 M-v Back page
98 C-v Forward page
99 M-{ Back one paragraph
100 M-} Forward one paragraph
101 M-< Top of file
102 M-> End of file