jed-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [Jed-users-l] Turning off auto-wrap


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]