aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-06-15 13:21:56 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-06-15 13:21:56 -0400
commitf3bb9601ac824c2ff8fa12e37029bb15177c6583 (patch)
treeed7b79ef8f121b513230f1be29c78bc8a125d27e
parent6169e7d42c434ef6a01b199e0f2729a25b389e43 (diff)
downloadtextadept-f3bb9601ac824c2ff8fa12e37029bb15177c6583.tar.gz
textadept-f3bb9601ac824c2ff8fa12e37029bb15177c6583.zip
Removed user_dofile() of keys and snippets.
-rw-r--r--core/init.lua3
-rw-r--r--doc/manual/6_Startup.md4
-rw-r--r--modules/textadept/keys.lua9
-rw-r--r--modules/textadept/snippets.lua2
4 files changed, 4 insertions, 14 deletions
diff --git a/core/init.lua b/core/init.lua
index 055e09b7..cb880579 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -10,8 +10,7 @@ if not lfs.attributes(_USERHOME) then lfs.mkdir(_USERHOME) end
if not lfs.attributes(_USERHOME..'/init.lua') then
local f = io.open(_USERHOME..'/init.lua', 'w')
if f then
- f:write("-- 'require' your modules here\n\n")
- f:write("require 'textadept' -- should be 'require'd last\n")
+ f:write("require 'textadept'\n")
f:close()
end
end
diff --git a/doc/manual/6_Startup.md b/doc/manual/6_Startup.md
index 4adbedc8..aff0ac1d 100644
--- a/doc/manual/6_Startup.md
+++ b/doc/manual/6_Startup.md
@@ -34,10 +34,6 @@ example:
-- In ~/.textadept/init.lua
- -- Load my modules in '~/.textadept/modules'.
- require 'foo'
- require 'bar'
-
-- Do not load all of textadept's modules.
--require 'textadept'
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index 187f227c..0d65f76a 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -108,10 +108,9 @@ module('_m.textadept.keys', package.seeall)
--
-- ## Configuration
--
--- It is not recommended to edit Textadept's `modules/textadept/keys.lua`. You
--- can either override or add to default key commands in your
--- `~/.textadept/keys.lua` or `require` a separate module in your
--- `~/.textadept/init.lua` instead of `modules/textadept/keys`.
+-- It is not recommended to edit Textadept's `modules/textadept/keys.lua`.
+-- Instead you can modify `_G.keys` from within your `~/.textadept/init.lua` or
+-- from a file `require`d by your `init.lua`.
-- Windows and Linux key commands are listed in the first block.
-- Mac OSX key commands are listed in the second block.
@@ -483,8 +482,6 @@ end
-- @name _G.keys
_G.keys = _M
-user_dofile('keys.lua') -- load user key commands
-
-- Do not edit below this line.
-- optimize for speed
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 9dbe1988..f0da90e5 100644
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -475,5 +475,3 @@ end
-- @class table
-- @name _G.snippets
_G.snippets = _M
-
-user_dofile('snippets.lua') -- load user snippets