Cara's Emacs Quick-Reference
In the following:
- C-x means hit the Control key and x.
- M-x means hit the Meta key (usually assigned to "Alt" or another spare key to the left of the space bar) and x. If no Meta key has been assigned, you can always hit the Escape key then x.
Cursor movement
- C-f
- cursor forward
- C-b
- cursor backward
- C-n
- cursor down to next line
- C-p
- cursor up to previous line
- C-v
- page down
- M-v
- page up
- M-<
- beginning of document
- M->
- end of document
Cutting and pasting
- C-d
- delete under cursor
- C-k
- kill (delete) to end of line (press again to remove carriage return as well) send to kill ring
- C-y
- yank (paste) back whatever is in the kill ring
- C-"space"
- mark a point in the text
- C-w
- wipe (delete) all text between the mark and the cursor and send to kill ring
Note: C-w (or a series of C-k's) followed by C-y is used to cut and paste.
Searching
- C-s
- search forward
- C-r
- search in reverse
- M-%
- search and replace
File operations
- C-x C-f
- find (open) file
- C-x i
- insert file at cursor
- C-x C-s
- save file
- C-x s
- save all buffers
- C-x C-w
- write file ("save as...")
Buffers
- C-x b
- show a different buffer
- C-x C-b
- list all buffers
- C-x k
- kill buffer
Windows
- C-x 2
- split window into 2
- C-x o
- change to other window
- C-x 1
- revert to 1 window
Mail
- M-x vm
- enter mail-mode and read mail
- g
- get new mail
- S
- save mail folder
- s
- save mail to a different folder
- m
- compose mail message
- C-c C-c
- send composed message
- e
- edit received message
- r
- reply to message
- C-c C-y
- yank a copy of the message you are replying to into your reply
- v
- view a different folder
- d
- delete current message (mark for deletion)
- #
- expunge deleted messages (really delete them)
- q
- quit mail
Help
- C-h m
- describe mode
- C-h a
- command apropos - list commands containing string
Miscellaneous
- C-g
- abort the current command
- C-_ (or M-x undo)
- undo the last operation
- M-x shell
- open a shell in a buffer
- M-$
- check spelling of word under cusor
- M-x spell-buffer
- check spelling of whole buffer
- M-x comment-region
- comment out a region in programming and TeX modes
- M-x gnus
- Read news through Emacs
- C-x C-c
- exit Emacs
|