aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/08_Preferences.md7
-rw-r--r--doc/09_Themes.md6
2 files changed, 6 insertions, 7 deletions
diff --git a/doc/08_Preferences.md b/doc/08_Preferences.md
index 46db35a3..9495a747 100644
--- a/doc/08_Preferences.md
+++ b/doc/08_Preferences.md
@@ -68,11 +68,10 @@ code in place of its own. However, if you make custom changes to that module and
upgrade Textadept later, the module may no longer be compatible. Rather than
potentially wasting time merging changes, run custom code independent of a
module in the module's *post_init.lua* file. In this case, instead of copying
-the `lua` module and creating an `events.LANGUAGE_MODULE_LOADED` event handler
-to use tabs, simply put the event handler in
-*~/.textadept/modules/lua/post_init.lua*:
+the `lua` module and creating an `events.LEXER_LOADED` event handler to use
+tabs, simply put the event handler in *~/.textadept/modules/lua/post_init.lua*:
- events.connect(events.LANGUAGE_MODULE_LOADED, function(lang)
+ events.connect(events.LEXER_LOADED, function(lang)
if lang == 'lua' then buffer.use_tabs = true end
end)
diff --git a/doc/09_Themes.md b/doc/09_Themes.md
index 0fa9f5d3..a940f4c9 100644
--- a/doc/09_Themes.md
+++ b/doc/09_Themes.md
@@ -75,10 +75,10 @@ managing more changes is probably easier with the latter.
### Language
Textadept also allows you to customize themes per-language through the
-`events.LANGUAGE_MODULE_LOADED` event. For example, changing the color of
-functions in Java from orange to black in the "light" theme looks like this:
+`events.LEXER_LOADED` event. For example, changing the color of functions in
+Java from orange to black in the "light" theme looks like this:
- events.connect(events.LANGUAGE_MODULE_LOADED, function(lang)
+ events.connect(events.LEXER_LOADED, function(lang)
if lang == 'java' then
buffer.property['style.function'] = 'fore:%(color.light_black)'
end