Skip to content

Instantly share code, notes, and snippets.

@sambrenner
Last active August 22, 2016 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sambrenner/316eba0eb89e6a5691fe to your computer and use it in GitHub Desktop.
Save sambrenner/316eba0eb89e6a5691fe to your computer and use it in GitHub Desktop.
my emacs cheat sheet. print it out and tape it to your monitor.
EMACS CHEAT SHEET
C-g . . . . . . . Stop bothering me
C-x C-c . . . . . Exit Emacs
C-x C-f . . . . . Find File
C-x k . . . . . . Kill Buffer
C-x b . . . . . . Load Buffer
C-x o . . . . . . Next Buffer
C-x left/right . Next/Previous buffer
C-x [0-3] . . . . Fiddle with buffer views
M-g g . . . . . . Goto Line
C-a . . . . . . . Beginning of line
C-e . . . . . . . End of line
C-v . . . . . . . Page down
M-v . . . . . . . Page up
C-s . . . . . . . Search in buffer
C-x C-s . . . . . Save buffer
C-space . . . . . Set mark
C-w . . . . . . . Cut
M-w . . . . . . . Copy
C-y . . . . . . . Paste
M-x things:
M-x shell . . . . . . Open Shell
M-p . . . . . . . . . Previous shell command
M-x replace-string . Find/Replace in file
M-x rgrep . . . . . . Find in folders
M-x list-packages . . Package Manager
Magit:
s . . . . Stage
u . . . . Unstage
c . . . . Commit
k . . . . Discard modification
P . . . . Push
F . . . . Pull
C-c C-c . Save commit message
Dired Mode:
m . . . Mark file
u . . . Unmark file
! . . . Perform shell command on file(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment