Show Menu
Cheatography

Emacs with Clojure Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Contro­lling emacs

Quit Emacs
C-x C-c
Pause (return to terminal)
C-z
Recover after pausing (in terminal)
fg
Quit command
C-g

File stuff

Open file
C-x C-f
Open recent file
C-x C-r
Save file
C-x C-s
Save all files
C-x s
Save as
C-x C-w

Text bits

Find replace all
M-x replac­e-s­tring
Comment toggle block
M-;
Search
C-s
 

Buffering

Go back/fwd
C-x ←/→
Switch to other window
C-x o
Switch to buffer­/from list
C-x b/C-b
Close current window
C-x 0
Close other windows
C-x 1
Horizontal split
C-x 2
Vertical split
C-x 3

CIDERy REPLy stuff

Start REPL
C-c M-j
Compile
C-c C-k
Reload REPL
C-M-r
Switch namespace to current file
C-c M-n
 

Cursor control

Start/end of buffer
M-<­/>
Start/end of line
C-a/e
Undo
C-/
Redo
C-g C-/
Copy/cut to clipboard
M/C-w
Delete line (kill)
C-k
Paste (yank)
C-y
Start region highlight
C-space