[OS X Emacs] Soft word wrap

David Reitter david.reitter at gmail.com
Wed Jul 29 08:38:00 EDT 2009

On Jul 29, 2009, at 2:20 PM, Jose Figueroa-O'Farrill wrote:
> Enrico> How do I switch on/off via elisp the soft wrap mode only in  
> some modes?
> Enrico> For example, I'd like it to be off always in LaTeX mode.
> One possibility:
> (add-hook 'LaTeX-mode-hook
> 	  '(lambda ()
> 	     (turn-off-word-wrap)))

Even simpler:

(add-hook 'LaTeX-mode-hook 'turn-off-word-wrap)

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/20090729/0c2d23c3/attachment.p7s>

More information about the MacOSX-Emacs mailing list