]> code.delx.au - dotemacs/blob - README.txt
close all buffers when last frame closes
[dotemacs] / README.txt
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 0 Delete window
35 C-x 1 Switch to single window
36 C-x 2 Split vertically
37 C-x 3 Split horizontally
38 M-x 'make-frame New frame (X11 window)
39 M-= Display info about region
40
41 # Text formatting
42 M-/ Auto-complete
43 M-; Comment line or region
44 M-q Reformat paragraph
45 M-l Lower case word
46 M-u Upper case word
47 M-c Capitalise word
48 C-x C-l Lower case region
49 C-x C-u Upper case region
50
51 # Macros
52 F3 , F4 Start recording macro
53 C-u F3 Play last macro then append keys
54 F4 Play back macro
55
56 # Selecting/deleting/killing text
57 C-Space Set mark (start selection)
58 C-Space C-Space Set mark to point
59 C-u C-space Return to mark
60 C-M-p Back to start of balanced expression
61 C-M-n Forward to end of balanced expression
62 C-M-k Kill balanced expression
63 M-@ Set mark at end of next word
64 C-w Kill from mark to point
65 C-y Yank text (paste)
66 M-y Scroll through kill ring (paste buffer)
67 M-z <char> Kill until <char>
68 C-k Kill rest of line
69 C-S-Backspace Delete current line
70 C-d Delete next character
71 M-d Delete next word
72 M-Backspace Delete previous word
73 M-Space Collpase to one space around point
74 M-\ Delete spaces around point
75 C-x C-o Collapse blank lines
76 M-X delete-trailing-whitespace Delete trailing whitespace
77
78 # Lines
79 C-o Insert new line at point
80 C-j Newline and maybe indent
81 M-^ Join to previous line
82
83 # Movement
84 M-m Jump back to start of indentation
85 M-r Jump to window top/bottom/middle
86 M-g M-g Jump to line
87 M-g Tab Jump to column
88 C-a Beginning of line
89 C-e End of line
90 C-p Back one line
91 C-n Forward one line
92 C-b Back one character
93 C-n Forward one character
94 M-b Back a word
95 M-f Forward a word
96 M-a Backward sentence
97 M-e Forward sentence
98 M-v Back page
99 C-v Forward page
100 M-{ Back one paragraph
101 M-} Forward one paragraph
102 M-< Top of file
103 M-> End of file