Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 2.33 KB

clojure-emacs-editing.org

File metadata and controls

77 lines (56 loc) · 2.33 KB

org-mode

C-c C-e m morg -> markdown
C-c ’edit source in major mode
C-c ’return to org mode buffer

figwheel

In a terminal:

lein repl

Cider connect. Then do:

user> (use 'figwheel-sidecar.repl-api)
user> (start-figwheel!)
user> (cljs-repl)

Your project.clj should have:

(defproject pcbe-web "0.1.0-SNAPSHOT"
  ...
  :plugins [[lein-figwheel "0.5.3-1"]
            [lein-cljsbuild "1.1.3" :exclusions [[org.clojure/clojure]]]
            [cider/cider-nrepl "0.13.0-SNAPSHOT"]]
  ... )

Clojure Refactor

Prefix: C-c C-m

fuFind Usages
rlremove let
cnclean namespace

Cider

Tests

C-c C-t t or C-c C-t C-tRun test at point.
C-c C-t n or C-c C-t C-nRun tests for current namespace.
C-c C-t l or C-c C-t C-lRun tests for all loaded namespaces.
C-c C-t p or C-c C-t C-pRun tests for all project namespaces. This loads the additional namespaces.
C-c C-t r or C-c C-t C-rRe-run test failures/errors.
M-pMove point to previous test.
M-nMove point to next test.
t or M-.Jump to test definition.
dDisplay diff of actual vs expected.
eDisplay test error cause and stacktrace info.

REPL

C-u C-c A-zCompile file and load NS into REPL
C-c ,Run Tests for NS
C-c C-,Re-run failures for NS
C-c A-,Run test at point
C-c C-tShow Test Report Buffer

Test Report

t or A-.Goto test definition
dDiff actual vs. expected

Debugging

After the last paren of your function, to instrument it for debugging

C-u C-A-x

Un-instrument

C-A-x

Documentation