Re: Change ident settings inside lexer?

From: mitchell <mforal.n....at.gmail.com>
Date: Sat, 20 Jun 2009 12:27:33 -0700 (PDT)

Hi,

> > 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

use buffer.indent, not buffer.indent_size. You don't need the
set_buffer_properties call. The function will be called when a Ruby
file is loaded.
Received on Sat 20 Jun 2009 - 15:27:33 EDT

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