Re: [code] textadept-curses line wrap

From: Carl Sturtivant <sturtivant.att.gmail.com>
Date: Fri, 24 Mar 2017 13:00:25 -0500

Right: no menu. And the hotkey you mention doesn't work.
Carl.

On 3/23/2017 11:22 PM, cryo shock wrote:
> 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
> <mailto: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
> <mailto: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 <mailto:code.att.foicica.com>.
> To change subscription settings, send an e-mail to
> code+help.att.foicica.com <mailto:code%2Bhelp.att.foicica.com>.
> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com
> <mailto:code%2Bunsubscribe.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 - 14:00:25 EDT

This archive was generated by hypermail 2.2.0 : Sat 25 Mar 2017 - 06:28:31 EDT