[OS X Emacs] Kill hard wrap default on new buffers

David Reitter david.reitter at gmail.com
Thu Nov 13 08:07:46 EST 2008

On 13 Nov 2008, at 02:35, Roland Whitehead wrote:

> I have asked this before but still don't have a solution. I wish to  
> have new buffers defaulted to not hard wrap long lines. My  
> investigations into long lines mode and so forth have got me no  
> where and I keep messing up documents by failing to turn off hard  
> wrap. How do I turn off Hard Word Wrap for every new buffer without  
> reaching for the Options Menu or meta-key?

Easy, because there's a customization variable.

(setq auto-word-wrap-default-function 'turn-on-word-wrap)

in your Preferences.el, or you use a customization buffer to set this  
to `turn-on-word-wrap'.

The other solution posted will work, but it will not turn on soft word  
wrap, and it disables Aquamacs' ability to recognize files that should  
have auto-fill enabled.

http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2193 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20081113/6b7a87cb/attachment.p7s>

More information about the MacOSX-Emacs mailing list