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

From: Arnel L. <jalespring.att.gmail.com>
Date: Mon, 7 Dec 2015 14:05:06 +0800

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.
Received on Mon 07 Dec 2015 - 01:05:06 EST

This archive was generated by hypermail 2.2.0 : Mon 07 Dec 2015 - 06:32:36 EST