practicalli

2021-09-15T11:35:15.019500Z

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-johnny 2021-09-15T19:31:56.020900Z

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-johnny 2021-09-15T19:34:08.021200Z

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

2021-09-16T06:06:53.021400Z

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