[OS X Emacs] How to overwrite global line-wrapping setting for a specific mode?

David Reitter david.reitter at gmail.com
Thu Oct 6 16:27:42 EDT 2011


On Oct 6, 2011, at 4:21 PM, Marius Hofert wrote:

> I work with Aquamacs Distribution 3.xdev on Mac OS X 10.7.1. I use "(global-visual-line-mode 1)" in Preferences.el to set the default to "word wrap" in documents. How can I "locally" overwrite this by "truncate" in R mode? So whenever an .R file is open, it should wrap lines with the option "truncate" rather than "word wrap".

ess-mode-hook (or R-mode-hook) is your friend.  I have explained it at length in slightly different context on this mailing list, just a few weeks ago.



--
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!


More information about the MacOSX-Emacs mailing list