Fork me on GitHub
#cider
<
2022-08-25
>
jumar05:08:53

Is it possible to evaluate an expression and paste the result under? Like cider-(pprint-)eval-defunt-to-comment but without commenting out the result. So instead of this:

(+ 1 2)
;; => 3
I want this:
(+ 1 2)
3
Or maybe this:
(+ 1 2)
;; =>
3

iarenaza07:08:34

For the first use-case, I think C-u M-x cider-eval-print-last-sexp is what you are looking for. For the second use-case, you could play with the variables cider-comment-prefix , cider-comment-continued-prefix and cider-comment-postfix to achieve it. but I'm not sure how easy it is to embed a new line character in cider-comment-prefix.