Skip to content

Instantly share code, notes, and snippets.

@coquin
Last active May 26, 2017 08:07
Show Gist options
  • Select an option

  • Save coquin/70d18bc22930daa0b596c35c40e33d55 to your computer and use it in GitHub Desktop.

Select an option

Save coquin/70d18bc22930daa0b596c35c40e33d55 to your computer and use it in GitHub Desktop.
Emacs cheat-sheet

Killing, yanking text

C-w — Kill active region.

M-w — Copy to kill ring.

C-M-w — Append kill.

C-y — Yank last kill.

C-S-<backspace> — Kill the whole line.

C-h v kill-ring — View the kill ring (not very readable).

Marking

C-x C-x — get back to mark.

Transposing text

C-t — Transpose characters.

M-t — Transpose words.

C-M-t — Transpose s-expressions.

C-x C-t — Transpose lines.

M-x transpose-paragraphs — Transpose paragraphs.

M-x transpose-sentences — Transpose sentences.

Working with windows

C-x + — balance windows.

Working with buffers

C-x k — kill buffer

C-x C-v — revert buffer

M-x ibuffer - interactive buffer list (deserves to be bound to C-x C-b)

Rename file and buffer

dired-jump -> R (or dired-do-rename) -> q

whole-line-or-region

M-x package-install RET whole-line-or-region RET

Install Emacs:

brew install emacs --with-cocoa --with-gnutls --with-librsvg --with-imagemagick
brew linkapps emacs

Install Markdown utility:

brew install markdown

Install Aspell dictionary:

brew install aspell --with-lang-en
@coquin
Copy link
Copy Markdown
Author

coquin commented Sep 23, 2016

My personal emacs cheat-sheet that I update while learning emacs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment