Re: [code] [textadept] How can you store in a session the line wrap mode for a buffer?

From: ardi <ardillasdelmonte.att.gmail.com>
Date: Sun, 14 Oct 2018 12:40:40 +0200

On Sat, Oct 13, 2018 at 10:09 PM Mitchell <m.att.foicica.com> wrote:
>
[...]
> > Is there any way for keeping each buffer with its better-suited wrapping mode?
>
> You'd have to replace Textadept's *modules/textadept/session.lua* with your own
> in *~/.textadept/modules/textadept/session.lua*. In your module you would want
> to save/restore a state that indicates whether or not a buffer is
> wrapped (`buffer.wrap_mode`[1]). This should be pretty easy to code up. Just start
> with a copy of Textadept's module and start tweaking from there.

Thanks a lot! It's really surprising the degree of customization that
one can achieve with TA!

ardi

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Sun 14 Oct 2018 - 06:40:40 EDT

This archive was generated by hypermail 2.2.0 : Mon 15 Oct 2018 - 06:32:17 EDT