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 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'doc/08_Preferences.md') 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) -- cgit v1.2.3