Re: [code] a bug

From: John Ferrier <john_j_ferrier.att.yahoo.com>
Date: Sat, 2 Feb 2013 13:29:29 -0800 (PST)

Thank you so much Mitchell. JF ----- Original Message ----- From: Mitchell <m@foicica.com> To: "code@foicica.com" <code@foicica.com> Cc: Sent: Saturday, February 2, 2013 12:36 PM Subject: Re: [code] a bug Hi John, On Sat, 2 Feb 2013, John Ferrier wrote: > [snip] > > The following is my  ".textadept/modules/cpp/post_init.lua > > -- Tabs and Indentation. > buffer.tab_width = 4 > buffer.use_tabs = false > buffer.indent = 4 > buffer.tab_indents = true > buffer.back_space_un_indents = true > Try this instead:   function _M.lua.set_buffer_properties()     buffer.tab_width = 4     buffer.use_tabs = false     buffer.indent = 4     buffer.tab_indents = true     buffer.back_space_un_indents = true   end (From http://foicica.com/textadept/08_Preferences.html) post_init.lua is only loaded once, when the cpp module is loaded. `set_buffer_properties()` is called each time a cpp file is loaded. 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 Sat 02 Feb 2013 - 16:29:29 EST

This archive was generated by hypermail 2.2.0 : Sun 03 Feb 2013 - 06:31:27 EST