doc
is inclojure.repl
lein new app my-app
- make a new project- (in
my-app
dir):lein run
- (in
my-app
dir):lein repl
- (in
my-app
dir):emacs src/my-app/core.clj
andM-x cider-jack-in
useful: https://www.emacswiki.org/emacs/PareditCheatsheet
- Use
M-(
forparedit-wrap-around
andC-<right arrow>
andC-<left arrow>
in inner parens to "slurp" and "barf". C-M-f
to move to the closing parens.C-M-b
to move to the opening parens.- Use
M-s
to "slurp" extra parens. - Use
M-"
for wrapping"
marks. You can useC-<right arrow>
to slurp more into the string (but barfing does not appear to work).
C-x C-e
at the end of a line - eval the line in the REPLC-u C-x C-e
at the end of a line - print the evaluationC-c M-n
set the namespace to the namespace at the top of the current file.C-c C-k
to compile the current file.C-c C-c
to compile the current function.C-<up arrow>
orM-p
to cycle back through historyC-<down arrow>
orM-n
to cycle forward through historyC-c C-d C-d
for documentation for the symbol under the point (q
to quit)C-c C-d C-a
appropos across documentation (q
to quit)M-.
andM-,
navigate source for symbol under point
q
to exit the stack traceC-x b *cider-error*
to view the error again (q
to exit)