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.