Skip to content

Essential Shortcuts

samaaron edited this page Apr 22, 2011 · 3 revisions

Navigation:

  • C-a move to beginning of line
  • C-e move to end of line
  • C-k kill (cut) from cursor to end of line
  • C-y yank (paste) text that was previously killed
  • M-y cycle through killring (needs to immediately after a C-y)
  • C-t transpose (swap) previous and next characters
  • C-p previous line
  • C-n next line
  • C-b back
  • C-f forward
  • C-h delete
  • C-d reverse delete
  • esc-< beginning of file
  • esc-> end of file

Highlighting:

  • c-space start highlighting (then navigate with navigate commands)
  • c-return start block highlighting (repeat to turn off)

File management:

  • C-x-C-f open file
  • C-x-C-k kill buffer
  • C-x-b switch to buffer (like switching tabs)
  • C-x-C-b view list of open buffers

Buffer management:

  • C-x-o switch to next visible buffer

Execute Emacs fns

  • M-x run arbitrary command
Clone this wiki locally