Skip to content

Instantly share code, notes, and snippets.

@CreaturePhil
Last active February 28, 2016 22:58
Show Gist options
  • Save CreaturePhil/1861432152e8a76e0601 to your computer and use it in GitHub Desktop.
Save CreaturePhil/1861432152e8a76e0601 to your computer and use it in GitHub Desktop.
emacs

Emacs cheatsheet

  • C-x C-c End emacs session
  • C-g Partially quit entered command

  • C-v Move forward one screenful
  • M-v Move backward one screenful
  • C-l Move the text around the cursor to the center of the screen. Also, it clears the screen and redisplay all the text

  • C-p Previous line
  • C-n Next line
  • C-b Backward a character
  • C-f Forward a character

  • M-f Move forward a word
  • M-b Move backward a word
  • M-a Move to beginning of a sentence
  • M-e Move to end of a sentence
  • C-a Move to beginning of a line
  • C-e Move to end of a line
  • M-< Move to Beginning of the file
  • M-> Move to End of the file
  • C-u Supply numeric argument for commands, mostly serves as a repeat count

  • C-/ Undo
  • C-x Extend to other commands
  • C-x C-f Find a file
  • C-x C-s Save a file
  • C-x 1 Delete all but one window
  • C-x C-b List buffers
  • C-x b Switch between buffers

  • C-s Search forward
  • C-r Search backward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment