0

I'm pretty new to emacs, so this might be a stupid question but

I have auto word wrap enabled like so:

(setq-default auto-fill-function 'do-auto-fill)

But when I try to use it in C files, It inserts a * before the wrapped line like a comment.

blah blah blah over the line limit

to

blah blah blah
*over the line limit

Weirdly enough, pressing enter on a comment does not add the star, which is disappointing.This does not happen in viml files (only in c and java files?)

  • Just to rule out the simple things, I assume it's not wrapping a multiplication, nor pointer arithmetic? If that's not the case, you might want to rule out other things in your init file by starting with a commented-out init file, set auto-fill-function, and test wrapping. Then, if it works as you want, uncomment out half of your init file, and see if it still works properly. – zck Aug 30 '15 at 17:41
  • Hmm, I made some significant changes (unrelated to this issue), and I don't seem to be seeing it anymore. It was probably one of the more buggy plugins I was trying to get to work, but then removed.Thanks for your help though! – Jay Kamat Aug 31 '15 at 4:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.