aboutsummaryrefslogtreecommitdiff
path: root/core/._m.luadoc
diff options
context:
space:
mode:
Diffstat (limited to 'core/._m.luadoc')
-rw-r--r--core/._m.luadoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/._m.luadoc b/core/._m.luadoc
index d5f52a94..c8665fad 100644
--- a/core/._m.luadoc
+++ b/core/._m.luadoc
@@ -34,6 +34,11 @@ module('_m')
-- [m_cpp]: ../modules/_m.cpp.html
-- [m_lua]: ../modules/_m.lua.html
--
+-- For language modules that have a `set_buffer_properties` function, that
+-- function is called each time a file with that language is opened. This is
+-- useful for setting `buffer.use_tabs`, `buffer.tab_width`, etc. for different
+-- languages.
+--
-- Note: While language-specific modules can only be used by files of that
-- language, they persist in Textadept's Lua state. Because of this, it is not
-- recommended to set global functions or variables and depend on them, as they