Fork me on GitHub
#practicalli
<
2021-09-15
>
paulspencerwilliams11:09:15

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.

practicalli-johnny19:09:56

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)

practicalli-johnny19:09:08

You may wish to look through some of the other configuration variables for CIDER https://practical.li/spacemacs/reference/cider/configuration-variables.html

paulspencerwilliams06:09:53

Yes, that worked a treat, thank you. I’ll read that page too.