I'm trying to configure emacs to indent my C block comments nicely.
Emacs (22.3) does by default (regardless of the indentation style):
/* My very long comment which spreads over multiple lines * and thus needs to be filled. */
But what I would highly prefer is:
/* My very long comment which spreads over multiple lines * and thus needs to be filled. */
I tried to play around with c-offset-alist and the syntactical symbol `c', but it didn't help me understand the problem:
(c-add-style "mine"
'((c-basic-offset . 2)
(c-block-comment-prefix . "* ")
(c-offsets-alist
(c . +)))
)
Any ideas? Thanks in advance!
Cheers, Daniel
Hm, it works here with 22.3.1 and starting with the '-Q' option which doesn't load any personal or site lisp files. Sorry to not be much help, but I think it's your setup. Try doing 'emacs -Q' and see if you still see the same problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With