How can I have emacs set to move the the last word at the 80 character mark?

What I mean is this:

Instead of


I would like emacs to place the whole word range on the next line at the 80 character mark.

Right now emacs will type past 80 characters and and cut the word at the terminal edge.


There's a Long Lines mode that handles this. Emacs 22 comes with long lines mode, and 23.1 has word wrapping built into the engine; earlier versions can use this elisp script.

  • @Michael Mrozek is there a way for the long lines to auto indent to the correct indention level? – dustin May 4 '13 at 5:34
  • I don't know anything about long lines, I was just trying to make the answer less dependent on the link – Michael Mrozek May 4 '13 at 6:13

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.