aboutsummaryrefslogtreecommitdiffhomepage
path: root/init.lua
blob: b262060c553578e0b940232014c087ec30ae59b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.

local paths = {
  _USERHOME..'/?.lua',
  _USERHOME..'/modules/?.lua',
  _USERHOME..'/modules/?/init.lua',
  _HOME..'/modules/?.lua',
  _HOME..'/modules/?/init.lua',
  package.path
}
package.path = table.concat(paths, ';')

if not user_dofile('init.lua') then require 'textadept' end

if not RESETTING then args.process() end