Fork me on GitHub
Nicky Chorley05:04:32

how to people comment forms in Emacs? I'm just using C-M-@ M-; . I couldn't find whether Clojure mode has its own key binding for comments


I jump to opening paren and type #_ , or slurp into a (comment ...) form. In general, I avoid using semicolons to comment out code, because it's easy to lose in-between code / paren balancing that way.

Nicky Chorley05:04:50

I'd forgotten about (comment) . C-x C-; doesn't work because that comments a single line and not the whole form. Thanks @U3SG7RX7A too!


I move at the beginning of the form, C-SPC, C-M-f and then M-;

thanks 4
💪 4