June 16, 2009

Emacs longlines-mode

I have been a fan of auto-fill-mode (and flyspell-mode for that matter) for a long time. Unfortunately, when I think about it I much prefer free-flowing text. The problem with auto-fill-mode is that it will throw \n characters into your text file when you need to wrap lines. Most email clients will automatically wrap text, and will do it at the size that is best for the user. Or at least, that is the theory.

Anyway, I just discovered longlines-mode. This mode in Emacs will wrap long lines (hence the name) but does not insert \n characters into your text file. Also, when you copy text, it copies as long unbroken lines. So this is really nice. I wonder why it took me so long to find this mode?

It makes me wonder what other marvelous mysteries emacs is hiding from me.


Provide your email address when commenting and Gravatar will provide general portable avatars, and if you haven't signed up with them, a cute procedural avatar with their implementation of Shamus Young's Wavatars.

Comments have now been turned off for this post