Show Menu
Cheatography

Emacs and Clojure Cheat Sheet by

Some Emacs Shortcuts for Clojure Development

REPL

C-c M-o
Clear REPL
C-c M-n
Switch REPL to current Namespace
M-p
REPL Scroll History Back
M-n
REPL Scroll History Forward

Paredit

C-M-Right
Extend the () to the Right
C-M-Left
Extend the () to the Left

Navigation

C-n
Next Line
C-p
Prev Line
C-b
Char Back
C-f
Char Forward
C-a
Beginning of Line
C-e
End of Line
 

General Clojure

C-c ,
Execute Unit-Tests
C-c C-k
Compile File
C-x b
Change Buffer

General Emacs

C-x C-s
Save File
M-.
Go to Function Definition
C-c C-d
Show Doc for Function
C-j
Newline and Indent
C-h c
Describe what a Key Combin­ation does
C-h ?
Get Help
C-k
Kill Line
C-_
Undo
C-c u
Undo
C-x C-c
Save and Exit
 

S Expr Navigation

C-M-n
forwar­d-list Move forward over a parent­hetical group
C-M-p
backwa­rd-list Move backward over a parent­hetical group
C-M-f
forwar­d-sexp Move forward over a balanced expression
C-M-b
backwa­rd-sexp Move backward over a balanced
C-M-k
kill-sexp Kill balanced expression forward
C-M-SPC
mark-sexp Put the mark at the end of the sexp.

Copy/K­ill­/Paste

C-w
Cut (really kill)
M-w
Copy (really kill-r­ing­-save)
C-y
Paste (really yank)
           
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          My Emacs Keyboard Shortcuts