aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-10 17:31:21 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-10 17:31:21 -0500
commitac698c5ea71d26e56289a18e664c6f8be1aa56c5 (patch)
treee683366e29ff29e8c0ebff54731ff505c201a6ff /init.lua
parent0194a626fcb17bcb037341fc6c2f586f54d26035 (diff)
downloadtextadept-ac698c5ea71d26e56289a18e664c6f8be1aa56c5.tar.gz
textadept-ac698c5ea71d26e56289a18e664c6f8be1aa56c5.zip
Various improvements to speed and readability of Lua code.
Added 'local textadept = _G.textadept' to all Lua modules, themes, etc. Added more locals to core/ext/keys.lua for speed improvement. Reformatted some Lua modules to the earlier standard committed.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 90e067e6..87782215 100644
--- a/init.lua
+++ b/init.lua
@@ -1,5 +1,7 @@
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+local textadept = _G.textadept
+
local mpath = _HOME..'/modules/?.lua;'.._HOME..'/modules/?/init.lua'
package.path = mpath..';'..package.path
@@ -32,7 +34,6 @@ require 'ext/key_commands' -- key commands for Mitchell (Nano-Emacs hybrid)
if not RESETTING then
-- process command line arguments
- local textadept = textadept
if MAC and arg[1] and arg[1]:match('^%-psn_0') then
table.remove(arg, 1)
end