From 1e9a3d23740844003d6ef06f7a92ccbba11c71f8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 26 Aug 2013 22:39:36 -0400 Subject: Forgot to update some documentation with newly renamed `LEXER_LOADED` event. --- doc/08_Preferences.md | 7 +++---- doc/09_Themes.md | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'doc') 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 -- cgit v1.2.3