diff options
author | 2013-08-26 22:39:36 -0400 | |
---|---|---|
committer | 2013-08-26 22:39:36 -0400 | |
commit | 1e9a3d23740844003d6ef06f7a92ccbba11c71f8 (patch) | |
tree | eee543627250334ce74e715e64705d15704b0d60 | |
parent | 92a1e1cae3029a3c4dde56c8dcc5d212fdc11e26 (diff) | |
download | textadept-1e9a3d23740844003d6ef06f7a92ccbba11c71f8.tar.gz textadept-1e9a3d23740844003d6ef06f7a92ccbba11c71f8.zip |
Forgot to update some documentation with newly renamed `LEXER_LOADED` event.
-rw-r--r-- | core/._M.luadoc | 5 | ||||
-rw-r--r-- | doc/08_Preferences.md | 7 | ||||
-rw-r--r-- | doc/09_Themes.md | 6 |
3 files changed, 8 insertions, 10 deletions
diff --git a/core/._M.luadoc b/core/._M.luadoc index 587898c9..a34223b3 100644 --- a/core/._M.luadoc +++ b/core/._M.luadoc @@ -53,10 +53,9 @@ -- -- By default, Textadept uses 2 spaces as indentation. If your language has -- different indentation guidelines, change them from an --- `events.LANGUAGE_MODULE_LOADED` event handler. Using tabs of width 8 would --- look like +-- `events.LEXER_LOADED` event handler. Using tabs of width 8 would look like -- --- events.connect(events.LANGUAGE_MODULE_LOADED, function(lang) +-- events.connect(events.LEXER_LOADED, function(lang) -- if lang == 'lua' then -- buffer.tab_width = 8 -- buffer.use_tabs = true 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 |