Spacemacs encourages you to evaluate Clojure expressions in the source code buffer, which shows the results next to the expression.
, e f will evaluate the current expression / function.
, e ; will evaluate the current expression and show the result as a comment
The evaluation menu for Clojure is available via
, e (or
M-RET e in holy mode).
Evaluation commands for Clojure are:
||Evaluate the current expression and print the result as a comment|
||Evaluate all the code in the current buffer|
||Evaluate the previous expression and print the result|
||Evaluate the current expression and print the result|
||Open new buffer and pretty print result of the previous expression|
||Evaluate code within the highlighted region|
||Evaluate the previous expression and replace it with the result|
||Toggle Enlighten mode, showing intermediate values|
Displaying large results
, e P opens a separate buffer and pretty prints the results. This is excellent for evaluating expressions that return a large result, eg. a large map.