Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
@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 posting your answer, you agree to the privacy policy and terms of service.

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