aboutsummaryrefslogtreecommitdiff
path: root/core/._M.luadoc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-05-15 10:31:16 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-05-15 10:31:16 -0400
commite101a0190a282bf30ed6496d627e362774c1864a (patch)
tree4816027b197d2fd13bb9bb10a9eebf8504c88441 /core/._M.luadoc
parent64ec422c0a6da08710578ae92282cfb4bcb50f5f (diff)
downloadtextadept-e101a0190a282bf30ed6496d627e362774c1864a.tar.gz
textadept-e101a0190a282bf30ed6496d627e362774c1864a.zip
Set language-specific buffer properties through an event instead of a function.
Diffstat (limited to 'core/._M.luadoc')
-rw-r--r--core/._M.luadoc16
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`