emacscommentsspacemacs

Is there a spacemacs-y way to comment lines in Doom Emacs?


Is there a spacemacs-y way to comment a line in Doom Emacs? In Spacemacs, it's SPC c l, but I couldn't find anything of the sort for Doom Emacs. I know I can comment a line using SPC : and then selecting comment-line, but that's so much more work than on Spacemacs.


Solution

  • I found it out: if you do SPC h b b, it lists all commands. Then, it shows that commenting a line is s-/, however it was unclear to me what s- is supposed to mean as other commands start with s-. After trying lots of options, I found that s- means ctrl/cmd, therefore, to comment a line is ctrl/cmd + /.