- Subject: Re: [Jed-users-l] Turning off auto-wrap
- From: Guenter Milde <milde@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Jun 2011 08:37:05 +0200
On 26.06.11, Doug Kramer wrote:
> This works to stop wrap in a *.txt file, but only if I call toggle_wrapmode
> *after* opening the file.
> I want to turn off wrapmode as a default.
> If I try to set "toggle_wrapmode;" as a default in .jedrc, it has no effect
> on wrap within a *.txt file that I subsequently open.
> Is there a way to modify this so I can turn off wrapmode in .jedrc as a
> default for all files that I subsequently open (without having to call
> toggle_wrapmode after opening the file)?
You might try to set in your jed.rc file:
WRAP_DEFAULT = 1000;
Alternatively, define mode_hooks for the "offending" modes with e.g.
define text_mode_hook() {
set_mode("Text", 0); % do not wrap
}
See the documentation of set_mode() for info (the second arg contains a
"wrap" flag).
Günter
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2011 date index]
[2011 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]