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


Ah, thank you.  Very helpful.

-Doug


On Sun, Jun 26, 2011 at 9:46 PM, John E. Davis <davis@xxxxxxxxxxxxx> wrote:

> Doug Kramer <doog@xxxxxxxxxx> wrote:
> > 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)?
>
> The simplest thing to do would be to set WRAP_DEFAULT to some large
> number in your jedrc file, e.g.,
>
>   WRAP_DEFAULT = INT_MAX;
>
> You could also turn off wrap using the global_mode_hook as follows:
>
>  define global_mode_hook (mode)
>  {
>     variable flags, name;
>     (name, flags) = what_mode ();
>     set_mode (name, flags & ~1);
>  }
>
> I hope this helps.
> Thanks,
> --John
>
> _______________________________________________
> 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]