Re: [code] see lexer defined background colors in caret line

From: Mitchell <m.att.foicica.com>
Date: Wed, 11 Nov 2015 14:42:32 -0500 (EST)

Hi Martin,

On Wed, 11 Nov 2015, docmorchel . wrote:

> An additional question arose. I just want to have this behavior with
> buffers that actually use a certain lexer. How can I set the properties for
> specific buffer instances?

This should work in your init.lua:

   events.connect(events.LEXER_LOADED, function(lexer)
     local alpha = lexer == '...' and 55 or buffer.ALPHA_NOALPHA
     buffer.caret_line_back_alpha = alpha
   end)

Since `caret_line_back_alpha` applies to all buffers in a view, you'll
have to set it upon switching buffers to make it appear buffer-specific.

Cheers,
Mitchell

-- 
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 Wed 11 Nov 2015 - 14:42:32 EST

This archive was generated by hypermail 2.2.0 : Thu 12 Nov 2015 - 06:46:00 EST