For COMP11
September 27, 2016
Command Key
All commands in Emacs follow a similar format and we will adopt the convention used in most
other resources to denote them:
C-<key>: Denotes holding the Ctrl key down while pressing <key>. For example, C-x means
hold down Ctrl and press the x key.
M-<key>: Denotes holding the Alt key down while pressing <key>. For example, M-x means
hold down Alt and press the x key. If Alt does not work for you, you can precede <key>
with Esc (If this is the case, dont hold down Esc).
If a command is followed by a single keystroke, we will write C-<key 1> <key 2>. For
example, C-x b means hold down Ctrl and press x, release both, and finally press b.
Some actions require two atomic commands in a row; this will be denoted, for example, as
C-x C-f. This means hold down Ctrl, press x, and then without releasing Ctrl press f.
Advanced Navigation
Rather than moving one character or line at a time, Emacs provides several other commands that
allow for faster navigation through larger files:
To move to the start of the line youre on, use C-a.
To move to the end of the line youre on, use C-e.
To move to the beginning of the paragraph youre working on, use M-a.
To move to the end of the paragraph youre working on, use M-e.
To move forward one whole screen of text, use C-v.
To move back one whole screen of text, use M-v.
To jump to the beginning of the file, use M-< (Thats M-Shift-,).
To jump to the end of the file, use M-> (Thats M-Shift-.).
Deleting Text
To delete a character, use Delete or C-d.
To delete a character and everything after it on the line, use C-k.