Table E-2. Cursor movement commands
Table E-2. Cursor movement commands (Chapter 2)
Keystrokes | Command name | Action |
---|---|---|
C-f | forward-char | Move forward one character (right). |
C-b | backward-char | Move backward one character (left). |
C-p | previous-line | Move to previous line (up). |
C-n | next-line | Move to next line (down). |
M-f | forward-word | Move one word forward. |
M-b | backward-word | Move one word backward. |
C-a | beginning-of-line | Move to beginning of line. |
C-e | end-of-line | Move to end of line. |
M-e | forward-sentence | Move forward one sentence. |
M-a | backward-sentence | Move backward one sentence. |
C-v | scroll-up | Move forward one screen. |
M-v | scroll-down | Move backward one screen. |
M-< | beginning-of-buffer | Move to beginning of file. |
M-> | end-of-buffer | Move to end of file. |
(none) | goto-line | Go to line n of file. |
(none) | goto-char | Go to character n of file. |
M-n | digit-argument | Repeat the next command n times. |
C-u n | universal-argument | Repeat the next command n times (four times if you omit n). |
Table E-3. Deleting, yanking, region, and clipboard commands
Table E-3. Deleting, yanking, region, and clipboard commands (Chapter 2)
Keystrokes | Command name | Action |
---|---|---|
C-d | delete-char | Delete character under cursor. |
Del | delete-backward-char | Delete previous character. |
M-d | kill-word | Delete next word. |
M-Del | backward-kill-word | Delete previous word. |
C-y Edit → Paste Most Recent | yank | Restore what you've deleted. |
C-w Edit → Cut | kill-region | Delete a marked region (see next section). |
C-@ or C- Space | set-mark-command | Mark the beginning (or end) of a region. |
C-x C-x | exchange-point-and-mark | Exchange location of cursor and mark. |
C-w | kill-region | Delete the region. |
C-y | yank | Paste most recently killed or copied text. |
M-w | kill-ring-save | Copy the region (so it can be pasted with C-y). |
C-x h | mark-whole-buffer | Mark buffer. |
M-y | yank-pop | After C-y, pastes earlier deletion. |
(none) | clipboard-kill-region | Cut region and place both in kill ring and on system clipboard. |
(none) | clipboard-yank | Paste text from clipboard. |
(none) | clipboard-kill-ring-save | Copy text to clipboard. |