Fork me on GitHub
#emacs
<
2019-05-14
>
robertfw17:05:07

I'm using spacemacs, and have been seeing some weird indentation issues with comments. Namely, they get autoindented to the 40th column. Any pointers on where to look for what is going wrong?

robertfw17:05:36

as I type that, I realize it is only happening with single ; comments, ;; comments get indented properly

practicalli_john23:05:24

SPC ; will toggle the comment for a region and SPC ; ; will toggle a comment on a line.

practicalli_john23:05:06

In Evil (vim) normal state, you can also use g c c to toggle the comment of a line and g c to toggle the comment of a region

practicalli_john23:05:06

You can also use M-; to add a comment line.

practicalli_john23:05:52

Spacemacs will use the default comment syntax for the current mode. If there is no default syntax for a comment, Spacemacs will prompt you 🙂

robertfw17:05:39

Ah, that is very helpful. thanks!

bozhidar18:05:18

It’s on my todo to allow the usage of ; for whoever prefers this, but I haven’t had the time to do so.