What’s the correct method for defining multi-line comments in an emacs mode (like C’s /* */)? The elisp examples I see are for comments that start with a single delimiter and end at the end of the line (like C++’s // or perl’s #).
What’s the correct method for defining multi-line comments in an emacs mode (like C’s
Share
It’s like this:
But there are subtleties; maybe you want
or maybe you want
This is affected by your
comment-style, which you can customize (M-x customize-variable comment-style). For something like the first example chooseindent, for the second example,extra-line.It’s all defined in
newcomment.el, which you can read about if youM-x describe-variable comment-start.