I'm tired of writing comments that look like this
{
# bla bla blabla bla blabla bla blabla
# bla bla blabla bla blabla bla blabla bla blabla bla blabla bla bla
# blaaa bla
}
I have to manually wrap the lines and take care of the # as well. How do emacs pros make the editor work for them?
Selecting the comment and hitting M-q will usually reformat it.
M-q is generally mapped to fill-paragraph
, c-fill-paragraph
, or some other mode-specific variant.
Use auto-fill-mode
together with comment-auto-fill-only-comments
(the latter is from newcomment.el
).
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