diff options
author | 2007-08-06 05:03:01 -0400 | |
---|---|---|
committer | 2007-08-06 05:03:01 -0400 | |
commit | a20651bf0b5e9fb00ac8e7b6f5608f332d15cab6 (patch) | |
tree | a763acc1e55c3d022cbcd070bd703d660900b072 | |
parent | 538767b22d4641ffe4c6c5d5d82445c9e036bab6 (diff) | |
download | textadept-a20651bf0b5e9fb00ac8e7b6f5608f332d15cab6.tar.gz textadept-a20651bf0b5e9fb00ac8e7b6f5608f332d15cab6.zip |
Initial import of Textadept Lua init script.
-rw-r--r-- | init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/init.lua b/init.lua new file mode 100644 index 00000000..b6b34129 --- /dev/null +++ b/init.lua @@ -0,0 +1,22 @@ +-- Copyright 2007 Mitchell mitchell<att>caladbolg.net. See LICENSE. + +require 'ext/pm' +require 'ext/find' +require 'ext/mime_types' + +local mpath = _HOME..'modules/?.lua;'.._HOME..'/modules/?/init.lua' +package.path = package.path..';'..mpath + +require 'textadept' + +local textadept = textadept +if #arg == 0 then + textadept.io.load_session() +else + local base_dir = arg[0]:match('^.+/') + for _, filename in ipairs(arg) do + textadept.io.open(base_dir..filename) + end + textadept.pm.entry_text = 'buffers' + textadept.pm.activate() +end |