I like auto-fill-mode a lot because it makes text fit into my screen even when I have two buffers side-by-side. My problem is that a small wording change may trigger auto-fill to reformat a whole paragraph, and that doesn't play well with version controlling, i.e., git.

I can't track my small changes anymore, because the whole paragraph is changed.

I was wondering if anyone has a suggestion on how to deal with this problem. Is there a "visual-auto-fill", which doesn't take care of newlines but just visually displays text in a proper manner?

Since I plan to export files to LaTeX and HTML, I don't care if there are no newlines at all in the saved document.


Yes, you want visual-line-mode. See the Emacs manual section 14.22 (run M-: (info "(emacs)Visual Line Mode") to jump right to it inside Emacs).

  • Works like a charm. Thanks for the quick answer – dangom Mar 9 '17 at 14:38

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.