Emacs Cheat Sheet



Rule of thumb: when in doubt, C-g it out.

The Woodnotes Emacs Cheat Sheet for Writers (not Coders) Emacs is a great word processor for authors and writers: these are the most useful commands for authors of prose. Hint: set text-mode before you begin. Files (Opening, Saving, Printing) C-x C-f read a file into Emacs C-x C-s save a file back to disk C-x s save all files C-x i. Emacs-cheat-sheet.md In penance for cracking stupid jokes on Twitter, here's my Emacs cheat sheet. Emacs has a steep learning curve, so I've tried to order them by importance so you could learn them in stages. One overall rule of thumb: pay attention to the minibuffer (the line at the bottom of the editor). Weekly homework sheet q2 3. E Browse emacs.d: P browse private config: R recent project files: a find other file: c open project editor config: d find dir: e find file in emacs.d: p find file in private config: r recent files: y yank filename: g git: c magit commit: C magit clone: G list gists: L list reps: P magic pull popup: R git revert: S git stage: U git unstange. Emacs cheat sheet Become an Emacs power user by learning the essential keyboard shortcuts demonstrated in this cheat sheet. It's nearly impossible to remember every single Emacs shortcut there is to know. With this cheat sheet, you can familiarize yourself with the most common combinations so you can be more efficient. Emacs cheat sheet of all shortcuts and commands.

You simply can't get by without having these at your fingertips.

  • C-x C-c - quit
  • C-x C-s - save buffer
  • C-x C-f - open file
  • C-x bbuffer name - switch to open buffer
  • C-g - cancel
  • C-x k - close current buffer
  • C-h acommand name - look up docs for command
  • M-xcommand name - execute command
  • C-x u - undo
  • C-/ - undo

Navigation

  • C-a - beginning of line

  • C-e - end of line

  • C-f - forward character

  • C-b - backward character

  • C-p - down a line

  • C-n - up a line

  • M-f - forward word

  • M-b - backward word

  • S-any of the above - navigate and select

  • Asus mb169b+ driver mac. C-space - start selection

Cutting and pasting

  • C-w - cut
  • C-y - paste

Search and replace

  • C-s - search
  • M-% - search and replace

Deletion and cutting

  • C-d - delete character ahead
  • M-d - delete word ahead
  • backspace - delete character behind
  • M-backspace - delete word behind
  • C-k - cut from cursor to end of line

Insertion

  • C-o - insert newline after cursor
Cheat

Frames

Emacs Cheat Sheet Gnu

  • C-x 2 - split window horizontally
  • C-x 3 - split window vertically
  • C-x 1 - unsplit window
  • C-x o - switch to other pane in split window

Tricks

  • M-q - auto-hard-wrap current paragraph
  • C-t - swap the two characters at the cursor
  • M-u - uppercase the word at the cursor
  • M-l - lowercase the word at the cursor
  • C-unchar - insert n copies of char

Emacs Cheat Sheet Wallpaper

  • M-x replace-regexp - search and replace by regexp (the quoting/escaping is so weird that this always takes me several tries)
  • C-r t - 'string-rectangle' (this one's really weird but super useful sometimes; look up the docs)