Re: [code] [textadept] How to disable code folding and line indentation guides

From: Ian Hall <ian.h477.att.gmail.com>
Date: Tue, 8 Dec 2015 02:58:09 +0000

Robert and Arnel,

Thanks for the replies, I've updated the settings in
~/.textadept/properties.lua as suggested and both problems are now solved.

Ian

On 7 December 2015 at 08:08, Robert Gieseke <rob.g.att.web.de> wrote:

> Hi,
>
> I use something similar to toggle states, but to make them permanent you
> can change settings in your
> ~/.textadept/properties.lua
>
> You can have a look at Textadept's properties.lua file (which sets the
> defaults) for the complete list, I think you need to change this:
>
> -- Fold Margin.
> buffer.margin_width_n[2] = not CURSES and 12 or 1
> buffer.margin_mask_n[2] = buffer.MASK_FOLDERS
>
> and indentation guides as suggested by Arnel.
>
> Cheers,
> Robert
>
>
> Am 07/12/15 um 07:05 schrieb Arnel L.:
> > On 06 December 2015 at 10:51PM, Ian Hall <ian.h477.att.gmail.com> wrote:
> >> Hi,
> >>
> >> Please could you tell me how I can permanently disable code folding
> >> (i.e. hide the fold margin) and also, how to always hide the line
> >> indentation guides?
> >>
> >> Thanks
> >> Ian
> >>
> >
> > I set up something for this in my init.lua:
> >
> > keys['cf11'] = function(i)
> > local state = buffer.indentation_guides
> > buffer.indentation_guides = state == 0 and (i or 1) or 0
> > end
> >
> > This toggles the indentation guides on or off when I press Ctrl+F11.
> >
> > Hope that helps.
> >
> >
> > --Arnel
> >
>
> --
> 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.
>
>

-- 
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 Mon 07 Dec 2015 - 21:58:09 EST

This archive was generated by hypermail 2.2.0 : Tue 08 Dec 2015 - 06:34:38 EST