Skip to content

Instantly share code, notes, and snippets.

@brycethornton
Created September 24, 2008 12:45
Show Gist options
  • Save brycethornton/12542 to your computer and use it in GitHub Desktop.
Save brycethornton/12542 to your computer and use it in GitHub Desktop.
C-f Move forward a character
C-b Move backward a character
M-f Move forward a word
M-b Move backward a word
C-n Move to next line
C-p Move to previous line
C-a Move to beginning of line
C-e Move to end of line
M-a Move back to beginning of sentence
M-e Move forward to end of sentence
C-u Indicate the number of times to execute the following command.
C-g To stop a command that is taking too long
M-< Go to beginning of document
M-> Go to end of document
C-v Scroll forward one page
M-v Scroll back one page
C-l Center the page on the current line
C-1 Use only one window, kill all others
C-d Delete the next character after the cursor
M-<Delback> Kill the word immediately before the cursor
M-d Kill the next word after the cursor
C-k Kill from the cursor position to end of line
M-k Kill to the end of the current sentence
C-y Yank (paste) killed text.
C-_ Undo
C-x b FILE Switch to another open buffer
C-x s Save unsaved files in buffer?
C-x C-c Close emacs
M-x replace-string
M-x recover file
C-s Search forward for a string
C-r Search reverse for a string
C-M-v Advance the "other" window
C-x o Move the focus to the "other" window
M-x Move cursor to minibuffer
C-h ? Display help
C-x k Close current buffer
Tree Stuff
C-o C-t = Open a tree with all the directories collapsed
C-d C-t = Open a tree with all the directories expanded
C-. = Select the file you are on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment