diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/._M.luadoc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/._M.luadoc b/core/._M.luadoc index f2e02abe..7b459468 100644 --- a/core/._M.luadoc +++ b/core/._M.luadoc @@ -67,17 +67,17 @@ -- #### Buffer Properties -- -- By default, Textadept uses 2 spaces as indentation. If your language has --- different indentation guidelines, change them in a `set_buffer_properties()` --- function. Using tabs of width 8 would look like +-- different indentation guidelines, change them from an +-- `events.LANGUAGE_MODULE_LOADED` event handler. Using tabs of width 8 would +-- look like -- --- function M.set_buffer_properties() --- buffer.tab_width = 8 --- buffer.use_tabs = true +-- events.connect(events.LANGUAGE_MODULE_LOADED, function(lang) +-- if lang == 'lua' then +-- buffer.tab_width = 8 +-- buffer.use_tabs = true +-- end -- end -- --- This function is called automatically to set the properties for the --- language's source files. --- -- #### Adeptsense -- -- The `Ctrl+Space` and `Ctrl+H` (`⌥⎋` and `^H` on Mac OSX | `^Space` and `M-H` |