diff options
author | 2010-02-23 12:24:44 -0500 | |
---|---|---|
committer | 2010-02-23 12:24:44 -0500 | |
commit | 2b28cb80d856bb6cf01590c4d08e2369eb7504d3 (patch) | |
tree | 3bf5dce1f210f50ca38b9ad2faf412401b4c7d11 | |
parent | 934f9422374a65ddaca15dd0cdb2487c71637f51 (diff) | |
download | textadept-2b28cb80d856bb6cf01590c4d08e2369eb7504d3.tar.gz textadept-2b28cb80d856bb6cf01590c4d08e2369eb7504d3.zip |
Added '~/.textadept/modules/' to package.path; init.lua
-rw-r--r-- | init.lua | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -2,8 +2,14 @@ local textadept = _G.textadept -local mpath = _HOME..'/modules/?.lua;'.._HOME..'/modules/?/init.lua' -package.path = mpath..';'..package.path +local paths = { + _HOME..'/modules/?.lua', + _HOME..'/modules/?/init.lua', + _USERHOME..'/modules/?.lua', + _USERHOME..'/modules/?/init.lua', + package.path +} +package.path = table.concat(paths, ';') local loaded_user_modules = false local user_init = _USERHOME..'/init.lua' |