Practicalli recommends evaluating Clojure expressions in the source code buffer, which displays the results next to the expression until you move the cursor.
, e f evaluates the top-level expression at cursor.
, e p evaluates the top-level expression at cursor and pretty prints the result in a separate buffer. Useful for results that are collections and nested collections.
, e ; evaluates the top-level expression at cursor and add the result as a comment. Useful for a design journal and when exploring a code base.
Review the evaluating expressions page for more examples and a deeper explanation.
, e menu provides many different ways of evaluating parts of an expression, or a complete expression.
M-RET e in holy mode.
||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|
||Pretty print result of the top-level expression in a new buffer|
||Pretty print result of the last expression in a new buffer|
||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 or
, e P pretty prints the results into a new buffer. This is excellent for evaluating expressions that return a large result, eg. a large map.
, d v the
cider-inspector is a great way to navigate through a large data structure, especially if it is nested.