This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-15
Channels
- # announcements (51)
- # beginners (65)
- # calva (44)
- # cider (6)
- # clara (3)
- # clj-kondo (30)
- # cljsrn (5)
- # clojure (63)
- # clojure-australia (7)
- # clojure-dev (7)
- # clojure-europe (43)
- # clojure-gamedev (1)
- # clojure-nl (6)
- # clojure-uk (7)
- # clojurescript (51)
- # conjure (1)
- # cursive (9)
- # datascript (16)
- # datomic (14)
- # depstar (20)
- # events (1)
- # exercism (17)
- # figwheel-main (6)
- # fulcro (9)
- # graphql (3)
- # gratitude (2)
- # honeysql (4)
- # jobs (7)
- # leiningen (3)
- # lsp (107)
- # meander (7)
- # minecraft (3)
- # off-topic (16)
- # other-languages (4)
- # pathom (4)
- # pedestal (26)
- # practicalli (4)
- # re-frame (3)
- # reitit (7)
- # remote-jobs (1)
- # shadow-cljs (26)
- # tools-deps (67)
- # vim (19)
- # vscode (1)
So, I’m trying to go through your excellent tutorial using my vanilla Emacs setup rather than spacemacs, and am trying to figure which cider command you execute to eval this form into a comment. If I try cider-eval-defun-to-comment
, it renders nil, because the top level form is (comment)
which yields nil.
There is a cider setting to evaluate forms within a comment, rather than the comment itself. This will make the command you are using work.
clojure-toplevel-inside-comment-form t ;; evaluate expressions in comment as top level
If not using spacemacs, then this can be a setq
expression in your init.el
file
(setq clojure-toplevel-inside-comment-form t)
You may wish to look through some of the other configuration variables for CIDER https://practical.li/spacemacs/reference/cider/configuration-variables.html
Yes, that worked a treat, thank you. I’ll read that page too.