This is my Spacemacs cheatsheet.
For the shortcuts C is CTRL and M (Meta) is ALT.
Start Clojure (i) or ClojureScript (I) cider-jack-in.
Restart Cider.
Switch to REPL, in REPL switches to previous buffer.
Clear REPL.
Evaluate expression before cursor.
Evaluate expression.
Evaluate expression and replace expression evaluated with evaluation.
The same as C-x C-e
except the result is sent to the REPL.
Send expression before cursor to REPL.
Evaluate buffer.
Format buffer (indentation)
Interrupt any pending evaluations.
Show the documentation as you would with (doc function-name).
Display documentation with examples via Grimoire (from Clojure site).
Go to declaration
Switch to namespace of current Clojure buffer.
Find usages.
Unit testing options: a all tests (as in file, looks for file with same name prefixed with tests). r rerun last tests. t run test under cursor.
This will take the current top-level form, place as many breakpoints inside it as possible (instrument it), and then evaluate it as normal. Note: Needs to be in INSERT mode.
n next i into More: https://github.com/clojure-emacs/cider/blob/master/doc/debugging.md
Remove breakpoints in method (if I am not mistaken).
Projectile switch project.
Find file in project.
HELM completion at point.
Display undo tree.
It is impossible to move out of Neotree with C-w Vim movements since the Vim keybindings are disabled. To move to another buffer use C-x o
or SPC w l
to move to the left (so SPC is substituted for C here).
Open Neotree in root of project.
Show dot file.
List of open buffers (and switch to them).
p Previous useful buffer. n Next useful buffer.
Previous buffer.
Toggle maximize current buffer
Also see some Cider commands
Correct spelling of word under cursor
Turn block of text in paragraph cut off at 80 characters
Create multiple cursors
Cycle through multiple cursors
Skip creating a cursor forward use C-t or grn
Skip creating cursor backward
Remove all multiple cursors
For Vim/Evil keybindings:
:evil-tutor
Indent region
Slurp forward
Slurp backward
Barf forward
Barf backward
Align sexps
(def my-map
{:a-key 1
:other-key 2})
Leads to:(def my-map
{:a-key 1
:other-key 2})
See https://github.com/clojure-emacs/clojure-modeProject wide search and replace.
Display git status
Show options. :)
Refresh Magit buffer.
View difference with master branch.
See http://daemianmack.com/magit-cheatsheet.html
Generate image.
java -jar plantuml.jar -tsvg my-style.pum
Call endpoint
Generate cURL command
Toggle evil-mode.
Close all folds.
Open all folds.
Do vimtutor
and read "The vi and Vim text editors".
Search documentation in Spacemacs.