aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-02-23 12:24:44 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2010-02-23 12:24:44 -0500
commit2b28cb80d856bb6cf01590c4d08e2369eb7504d3 (patch)
tree3bf5dce1f210f50ca38b9ad2faf412401b4c7d11
parent934f9422374a65ddaca15dd0cdb2487c71637f51 (diff)
downloadtextadept-2b28cb80d856bb6cf01590c4d08e2369eb7504d3.tar.gz
textadept-2b28cb80d856bb6cf01590c4d08e2369eb7504d3.zip
Added '~/.textadept/modules/' to package.path; init.lua
-rw-r--r--init.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index dae2706a..e7c7ee89 100644
--- a/init.lua
+++ b/init.lua
@@ -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'