cider¶
Emacs extension for using Clojure.
Essential shortcut¶
-
C-x C-eeval last S-EXP. -
C-c C-v weval last S-EXP and replace -
C-c M-iinspect last S-EXP. -
C-c C-v [vrb]eval [form around, region, buffer]. -
C-c C-kload buffer, -
C-c C-lload file, -
C-c M-lload all files -
C-c C-d [djcwaf]docs fordocsorjavadoc,clojuredoc local,clojuredocs web,a propos,a propos documentation -
C-c C-t nrun test of namespace. -
C-c C-t rrun failed test. -
M-.find-var -
C-c M-.find resource -
M-,return to prejump location.
Advanced shortcut¶
C-c M-sfor navigationC-u C-M-xinside a function to turn on debugging mode, see here for shortcuts.- Conditional breakpoints
(dotimes [i 10]
#dbg ^{:break/when (= i 7)}
(prn i))
-
C-c M-t v, tracing and untracing function. -
C-c M-t n, tracing and untracing all the namespace -
M-x cider-enlighten-mode -
M-x cider-browser-ns, browse namespace -
M-x cider-classpath, browse classpath. -
M-x cider-browser-spec, browse specs. -
M-x cider-browser-spec-all, browse specs.