Tables list keystrokes, command name, and description. C- indicates the Ctrl key; M- indicates the Meta key.
In addition to the key bindings shown in this table, you can use the arrow keys to move around in Emacs. When you are running Emacs in a graphical display environment (e.g., in the X Window System), you can also use the mouse for operations such as moving the cursor or selecting text.
Binding |
Command |
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-a |
backward-sentence |
Move backward one sentence. |
M-e |
forward-sentence |
Move forward one sentence. |
M-{ |
backward-paragraph |
Move backward one paragraph. |
M-} |
forward-paragraph |
Move forward one paragraph. |
C-v |
scroll-up |
Move forward one screen. |
M-v |
scroll-down |
Move backward one screen. |
C-x [ |
backward-page |
Move backward one page. |
C-x ] |
forward-page |
Move forward one page. |
M-> |
end-of-buffer |
Move to end-of-file. |
M-< |
beginning-of-buffer |
Move to beginning of file. |
(none) |
goto-line |
Go to line n of file. |
(none) |
goto-char |
Go to character n of file. |
C-l |
recenter |
Redraw screen with current line in the center. |
M-n |
digit-argument |
Repeat the next command n times. |
C-u n |
universal-argument |
Repeat the next command n times. |
Command |
Action |
|
---|---|---|
Del |
backward-delete-char |
Delete previous character. |
C-d |
delete-char |
Delete character under cursor. |
M-Del |
backward-kill-word |
Delete previous word. |
M-d |
kill-word |
Delete the word the cursor is on. |
C-k |
kill-line |
Delete from cursor to end-of-line. |
M-k |
kill-sentence |
Delete sentence the cursor is on. |
C-x Del |
backward-kill-sentence |
Delete previous sentence. |
C-y |
yank |
Restore what you've deleted. |
C-w |
kill-region |
Delete a marked region (see Section 10.4.4). |
(none) |
backward-kill-paragraph |
Delete previous paragraph. |
(none) |
kill-paragraph |
Delete from the cursor to the end of the paragraph. |
The following table shows commands that can be used in Shell mode. To enter Shell mode, run the command M-x shell.
Binding |
Command |
Action |
---|---|---|
C-c C-c |
interrupt-shell-subjob |
Terminate the current job. |
C-c C-d |
shell-send-eof |
End-of-file character. |
C-c C-u |
kill-shell-input |
Erase current line. |
C-c C-w |
backward-kill-word |
Erase the previous word. |
C-c C-z |
stop-shell-subjob |
Suspend the current job. |
Command |
Action |
|
---|---|---|
(none) |
center-line |
Center line that cursor is on. |
(none) |
center-paragraph |
Center paragraph that cursor is on. |
(none) |
center-region |
Center currently defined region. |
Binding |
Command |
Action |
---|---|---|
C-h t |
help-with-tutorial |
Run the Emacs tutorial. |
C-h i |
info |
Start the Info documentation reader. |
C-h n |
view-emacs-news |
View news about updates to Emacs. |
C-h C-c |
describe-copying |
View the Emacs General Public License. |
C-h C-d |
describe-distribution |
View information on ordering Emacs from the FSF. |
C-h C-w |
describe-no-warranty |
View the (non)warranty for Emacs. |
Copyright © 2003 O'Reilly & Associates. All rights reserved.