Re: Change ident settings inside lexer?

From: Justin Poliey <jd....at.njit.edu>
Date: Thu, 4 Jun 2009 12:12:20 -0700 (PDT)

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

Justin
Received on Thu 04 Jun 2009 - 15:12:20 EDT

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