Re: [code] [textadept] Language specific settings

From: Klaus Borges <klausborgs.att.gmail.com>
Date: Mon, 27 Jan 2014 14:19:40 -0200

Update: I downloaded Textadept on this computer and checked for myself, it
seems to be working as expected. I was able to branch out an if-elseif
statement and it ran after the settings dictated by
~/.textadept/properties.lua.

Thanks again,

On Mon, Jan 27, 2014 at 2:12 PM, Klaus Borges <klausborgs.att.gmail.com> wrote:

> On Mon, Jan 27, 2014 at 12:39 PM, Robert Gieseke <rob.g.att.web.de> wrote:
>
>> events.connect(events.LEXER_LOADED, function(lang)
>> if lang == 'javascript' then buffer.tab_width = 4 end
>> end)
>>
>
> Wow, I just checked Textadept manual page on Preferences and saw an
> example exactly like yours. Sorry about not RTFM first.
>
> But in this case, could I branch into a multi-line if-else if-else
> statement to check for different languages?
> My 'default' properties are set on ~/.textadept/properties.lua, will
> `events.connect` on init.lua run after properties.lua (which is the desired
> behavior)?
>
> Thanks,
>
> --
> *Klaus Borges*
> Graduando em Engenharia de Computação, EESC/ICMC - USP
> Diretor Assistencial do Centro Acadêmico Armando de Salles Oliveira
> *(11) 95490-4578 <%2811%29%2095490-4578>*
>

-- 
*Klaus Borges*
Graduando em Engenharia de Computação, EESC/ICMC - USP
Diretor Assistencial do Centro Acadêmico Armando de Salles Oliveira
*(11) 95490-4578*
-- 
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 27 Jan 2014 - 11:19:40 EST

This archive was generated by hypermail 2.2.0 : Tue 28 Jan 2014 - 06:53:56 EST