Re: [code] textadept-curses line wrap

From: cryo shock <axteffekt.att.gmail.com>
Date: Fri, 24 Mar 2017 05:22:00 +0100

Saw too late that you mean Curses. With that I have no experience...

2017-03-24 5:20 GMT+01:00 cryo shock <axteffekt.att.gmail.com>:

> Hi,
>
> please try to add the following to your init.lua:
>
> buffer.wrap_mode = 1
>
> Note that it has a boolean value (0 or 1). You can toggle it via
> Textadept's menu: "Buffer" -> "Toggle Wrap Mode" or by using the
> appropriate key shortcut: Ctrl - Alt - Backslash (by default on windows).
> You can also turn it on for a specific lexer only like (in my case it's the
> context lexer):
>
> events.connect(events.LEXER_LOADED, function(lexer)
> if lexer == 'context' then
> buffer.tab_width = 2
> buffer.wrap_mode = 1
> end
> end)
>
>
> Cheers, Sebastian
>
> 2017-03-24 3:51 GMT+01:00 Carl Sturtivant <sturtivant.att.gmail.com>:
>
>> Hello,
>>
>> What should I put in init.lua to have this turned on by default? And how
>> do I toggle it?
>>
>> Carl.
>>
>>
>> --
>> 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 Fri 24 Mar 2017 - 00:22:00 EDT

This archive was generated by hypermail 2.2.0 : Fri 24 Mar 2017 - 06:54:31 EDT