Re: [code] [textadept] Language specific settings

From: Robert Gieseke <>
Date: Mon, 27 Jan 2014 16:45:47 +0100

Am 27/01/14 16:08, schrieb Rob Kendrick:
>> events.connect(events.LEXER_LOADED, function(lang)
>> if lang == 'javascript' then buffer.tab_width = 4 end
>> end)
> This strikes me as a common enough desire that there should probably be
> some built-in infrastructure for doing it that allows more succinct
> configuration.
> In such a thing, I believe it might be desirable to allow the
> configuration of indentation rules not just based on lexer in use, but
> path, as not all projects follow the same.

You could use events.FILE_OPENED to check for path in a similar way or
write a general function that manages to figure out the currently used
indentation setting. Would definitely be useful

- Robert

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Mon 27 Jan 2014 - 10:45:47 EST

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