Fork me on GitHub
#cider
<
2017-11-09
>
jumar12:11:40

My new mini-episode about cider enlighten mode: https://www.youtube.com/watch?v=tCu2AewBTR4

qqq15:11:19

in cider, I can eval an expr; I can eval an expr and inject result in buffer, is there a way to: eval expr, inject result in buffer, but 1. run clojure.pprint/pprint on answer and

ajs17:11:34

There's always a way in emacs if you write some elisp

gonewest81818:11:10

There is a cider-pprint-eval-last-sexp but the pretty-printed output lands in another buffer. I wrote a gist for cider-pprint-eval-last-sexp-to-comment which sounds close to what you’re looking for…

gonewest81818:11:50

huh, weird, if I post the gist in a thread it ends up in the main channel anyway.

gonewest81818:11:22

oh, it’s because I posted the same gist earlier and slack cached it. actually it’s an older/obsolete version of the work. I deleted that file — the link above should take you to the latest.

qqq15:11:24

2. put a #_ in front of the result ?