docis inclojure.repl
lein new app my-app- make a new project- (in
my-appdir):lein run - (in
my-appdir):lein repl - (in
my-appdir):emacs src/my-app/core.cljandM-x cider-jack-in
useful: https://www.emacswiki.org/emacs/PareditCheatsheet
- Use
M-(forparedit-wrap-aroundandC-<right arrow>andC-<left arrow>in inner parens to "slurp" and "barf". C-M-fto move to the closing parens.C-M-bto move to the opening parens.- Use
M-sto "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-eat the end of a line - eval the line in the REPLC-u C-x C-eat the end of a line - print the evaluationC-c M-nset the namespace to the namespace at the top of the current file.C-c C-kto compile the current file.C-c C-cto compile the current function.C-<up arrow>orM-pto cycle back through historyC-<down arrow>orM-nto cycle forward through historyC-c C-d C-dfor documentation for the symbol under the point (qto quit)C-c C-d C-aappropos across documentation (qto quit)M-.andM-,navigate source for symbol under point
qto exit the stack traceC-x b *cider-error*to view the error again (qto exit)