diff options
author | 2016-06-27 21:35:45 -0400 | |
---|---|---|
committer | 2016-06-27 21:35:45 -0400 | |
commit | 1ac7b5d531cc96220b1d29f26e7254b3eb4ba80f (patch) | |
tree | f96ba28ed20660548a62bc2fc92086395b86c9b2 /doc | |
parent | 2ed5f6c6ba9db203f236d16a13ccadb13a382cf8 (diff) | |
download | textadept-1ac7b5d531cc96220b1d29f26e7254b3eb4ba80f.tar.gz textadept-1ac7b5d531cc96220b1d29f26e7254b3eb4ba80f.zip |
Updated migration guide section to read a bit easier; doc/manual.md
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual.md b/doc/manual.md index 834b68d6..6ab62b02 100644 --- a/doc/manual.md +++ b/doc/manual.md @@ -2058,10 +2058,10 @@ Textadept 9 no longer auto-loads a *post_init.lua* in language modules. Instead, it must be loaded manually from an `events.LEXER_LOADED` event. For example: events.connect(events.LEXER_LOADED, function() - if lang == 'lua' then require('lua.extras') end + if lang == 'ansi_c' then require('ansi_c.extras') end end) -will load a *~/.textadept/modules/lua/extras.lua* "sub-module" for Lua files. +will load a *~/.textadept/modules/ansi_c/extras.lua* "sub-module" for C files. Keep in mind that Lua's `require()` function will only execute module code once. If you have a number of *post_init.lua* files that you want Textadept 9 to make |