From 1ac7b5d531cc96220b1d29f26e7254b3eb4ba80f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 27 Jun 2016 21:35:45 -0400 Subject: Updated migration guide section to read a bit easier; doc/manual.md --- doc/manual.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/manual.md') 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 -- cgit v1.2.3