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

Marius Hofert marius.hofert at math.ethz.ch
Fri Oct 7 14:21:00 EDT 2011


I really don't get this. I removed everything from Preferences.el and put in:

(setq-default truncate-lines t)

This should set the default to truncated lines (which is more than what I want, but let's do this for the moment). When I close and reopen Aquamacs, I still get the file(s) in word-wrap. So apparently, my settings in Preferences.el are ignored. I also tried "(set-default 'truncate-lines t)". Again, files are opened in word wrap.

Cheers,

Marius

On 2011-10-07, at 00:25 , David Reitter wrote:

> On Oct 6, 2011, at 6:18 PM, Marius Hofert wrote:
> > 
> > With C-h k + the menu item "truncate", I found "set-truncate-lines", so I tried:
> > (add-hook 'ess-mode-hook 'set-truncate-lines)
> > Again, .R files were opened with word(s) wrap(ped).
> 
> This seems like the right solution to me, and it works perfectly for me, both with a manually entered R-mode, as well as when .R files are loaded.
> It even says "Truncate long lines enabled" in the echo area after the mode is entered.
> 
> What's going on?
> 
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx





More information about the MacOSX-Emacs mailing list