Skip to content

cider

Emacs extension for using Clojure.

Essential shortcut

  • C-x C-e eval last S-EXP.

  • C-c C-v w eval last S-EXP and replace

  • C-c M-i inspect last S-EXP.

  • C-c C-v [vrb] eval [form around, region, buffer].

  • C-c C-k load buffer,

  • C-c C-l load file,

  • C-c M-l load all files

  • C-c C-d [djcwaf] docs for docs or javadoc, clojuredoc local, clojuredocs web, a propos, a propos documentation

  • C-c C-t n run test of namespace.

  • C-c C-t r run failed test.

  • M-. find-var

  • C-c M-. find resource

  • M-, return to prejump location.

Advanced shortcut

  • C-c M-s for navigation
  • C-u C-M-x inside 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.

Source

See also (generated)