This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-25
Channels
- # announcements (4)
- # asami (26)
- # babashka (82)
- # beginners (27)
- # biff (6)
- # boot (1)
- # calva (42)
- # cider (2)
- # clj-commons (1)
- # clj-http-lite (2)
- # clj-kondo (37)
- # cljdoc (1)
- # clojure (46)
- # clojure-europe (34)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (2)
- # clojurescript (54)
- # code-reviews (18)
- # cursive (2)
- # datalevin (32)
- # datomic (7)
- # etaoin (1)
- # fulcro (9)
- # gratitude (3)
- # hyperfiddle (15)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (32)
- # nrepl (1)
- # off-topic (18)
- # pathom (17)
- # pedestal (5)
- # polylith (89)
- # reitit (7)
- # releases (3)
- # remote-jobs (4)
- # shadow-cljs (52)
- # spacemacs (3)
- # squint (14)
- # tools-build (10)
- # tools-deps (18)
- # vim (4)
- # xtdb (34)
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
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
.