[OS X Emacs] Soft word wrap
Jose Figueroa-O'Farrill
j.m.figueroa at ed.ac.uk
Wed Jul 29 09:14:57 EDT 2009
>>>>> "David" == David Reitter <david.reitter at gmail.com> writes:
David> 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)))
David> Even simpler:
David> (add-hook 'LaTeX-mode-hook 'turn-off-word-wrap)
This brings up a question that perhaps you can answer. I have added a
number of things in LaTeX-mode-hook, which is why I wrap them inside a
lambda function, but is it better to do this or to have one line like
the one you suggest per item that I add? This only gets read once,
but anything that can speed loading of my Preferences.el is welcome.
Cheers, José
--
Prof José M Figueroa-O'Farrill | Phone: +44 (0) 131 6505066
Maxwell Institute and | Skype: josemiguelfigueroa
School of Mathematics | Web: http://www.maths.ed.ac.uk/~jmf
University of Edinburgh | Blog: http://empg.maths.ed.ac.uk/blog
Edinburgh EH9 3JZ, Scotland, UK | PGP key: 6A6BD529 (MIT PGP keyserver)
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
More information about the MacOSX-Emacs
mailing list