aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-06-25 19:06:18 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2016-06-25 19:06:18 -0400
commit2ed5f6c6ba9db203f236d16a13ccadb13a382cf8 (patch)
tree7eb9494303cf26e34ca9fb7eee94baee36e17b7b /doc
parent48eed277e52e7eab0510e3b20b74b1b1475f1816 (diff)
Updated migration guide; doc/manual.md
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/manual.md b/doc/manual.md
index dd222a5d..834b68d6 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -2064,6 +2064,15 @@ it must be loaded manually from an `events.LEXER_LOADED` event. For example:
will load a *~/.textadept/modules/lua/extras.lua* "sub-module" for Lua 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
+use of, you can put the following in your *~/.textadept/init.lua*:
+
+ events.connect(events.LEXER_LOADED, function(lexer)
+ if lfs.attributes(_USERHOME..'/modules/'..lexer..'/post_init.lua') then
+ require(lexer..'/post_init')
+ end
+ end)
+
### Textadept 7 to 8
Textadept 8 upgraded its internal copy of Lua from [5.2 to 5.3][]. Nearly all