aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2014-05-10 16:12:30 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2014-05-10 16:12:30 -0400
commit0973c9501b5f6d68e06960fbf57a45e215c78ac5 (patch)
tree0bb91982fa105e13afd07b8053de73048cabfc74
parentf35bab15d62ed798eb68ac69b439e2198c8fad31 (diff)
downloadtextadept-0973c9501b5f6d68e06960fbf57a45e215c78ac5.tar.gz
textadept-0973c9501b5f6d68e06960fbf57a45e215c78ac5.zip
Add "_HOME/modules" to `package.cpath`; init.lua
-rw-r--r--init.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index cf54f208..ec8adffc 100644
--- a/init.lua
+++ b/init.lua
@@ -6,8 +6,10 @@ package.path = table.concat({
_HOME..'/modules/?.lua', _HOME..'/modules/?/init.lua',
package.path
}, ';');
-local so = not WIN32 and '/?.so;' or '/?.dll;'
-package.cpath = _USERHOME..so.._USERHOME..'/modules'..so..package.cpath
+local so = not WIN32 and '/?.so' or '/?.dll'
+package.cpath = table.concat({
+ _USERHOME..so, _USERHOME..'/modules'..so, _HOME..'/modules'..so, package.cpath
+}, ';')
textadept = require('textadept')
local user_init = _USERHOME..'/init.lua'