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
Try C-x C-;
I’ve been working on this mode https://github.com/dotemacs/clojure-comment-dwim.el/blob/master/clojure-comment-dwim.el you might find it useful.
I'd forgotten about (comment)
. C-x C-;
doesn't work because that comments a single line and not the whole form.
Thanks @dotemacs too!
I move at the beginning of the form, C-SPC
, C-M-f
and then M-;
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.
linked from there i noticed: http://www.viemu.com/a-why-vi-vim.html toward the end of that, there is this quote: > You need to invest quite some effort to learn, memorize, and internalize the 30 or so commands that start making you more productive than with other editors. does that seem accurate to you?