Re: Change ident settings inside lexer?

From: morchel <morc....at.hotmail.com>
Date: Thu, 4 Jun 2009 15:42:18 -0700 (PDT)

Same problem here.

set_buffer_properties() gets called by mime_types.lua when loading a
file, but seems get overridden afterwards.

Possibly a bug or my poor lua knowledge ;-)

@Justin: couldn't find a flag called indent_size...

Martin

On 4 Jun., 21:12, Justin Poliey <jd....at.njit.edu> wrote:
> > You can change indent settings for specific files through language-
> > specific modules. This cannot be done in the lexers themselves.
>
> Okay, I got that far. I added a ruby module, and I added this bit of
> code to the generated init.lua file:
>
> function set_buffer_properties()
>   buffer.indent_size = 2
>   buffer.tab_width = 2
>   buffer.use_tabs = false
> end
>
> set_buffer_properties()
>
> The set_buffer_properties() was scaffolded in the init.lua file.
> However, it had no effect on Ruby files. Any suggestions?
>
Received on Thu 04 Jun 2009 - 18:42:18 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:38:04 EST