aboutsummaryrefslogtreecommitdiffhomepage
path: root/init.lua
blob: 28616a64e870c9993cd6e2ca6d541a49611269f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Copyright 2007-2016 Mitchell mitchell.att.foicica.com. See LICENSE.

package.path = table.concat({
  _USERHOME..'/?.lua',
  _USERHOME..'/modules/?.lua', _USERHOME..'/modules/?/init.lua',
  _HOME..'/modules/?.lua', _HOME..'/modules/?/init.lua',
  package.path
}, ';');
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'
if lfs.attributes(user_init) then dofile(user_init) end