aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-05-15 09:58:04 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2013-05-15 09:58:04 -0400
commit64ec422c0a6da08710578ae92282cfb4bcb50f5f (patch)
treed88fbe42a0a25eb3cbe5aac3ea8797037a73b77a /doc
parent2e9b654850264d21bf7706ed96b18c3d317e83d1 (diff)
`_M.textadept = require('textadept')` in user init is superfluous.
The module was being loaded by default anyway. Besides, the user's modules/textadept/init.lua controls which parts are loaded.
Diffstat (limited to 'doc')
-rw-r--r--doc/08_Preferences.md12
1 files changed, 3 insertions, 9 deletions
diff --git a/doc/08_Preferences.md b/doc/08_Preferences.md
index dede2bd6..fa41f4c6 100644
--- a/doc/08_Preferences.md
+++ b/doc/08_Preferences.md
@@ -9,12 +9,9 @@ At this point it is assumed you are at least familiar with the basics of
Textadept executes a *~/.textadept/init.lua*, your user-init file, on startup.
If this file does not exist, Textadept creates it for you. You can use the file
-to indicate what you want Textadept to do when the application starts. At first,
-it simply loads a module that contains most of Textadept's functionality.
-However, you are not restricted to just loading modules. You can run any Lua
-code you desire. It is important to realize that Textadept will not load
-anything you do not tell it to. If your *~/.textadept/init.lua* exists and is
-empty, no modules are loaded (pretty much rendering Textadept useless).
+to indicate what you want Textadept to do when the application starts, such as
+loading additional modules. However, you are not restricted to just loading
+modules. You can run any Lua code you desire.
## Modules
@@ -39,8 +36,6 @@ from module's [LuaDoc][]. For example, to disable character autopairing with
typeover and stripping whitespace on save, your *~/.textadept/init.lua* might
look like:
- _M.textadept = require 'textadept'
-
_M.textadept.editing.AUTOPAIR = false
_M.textadept.editing.TYPEOVER_CHARS = false
_M.textadept.editing.STRIP_WHITESPACE_ON_SAVE = false
@@ -103,7 +98,6 @@ Suppose you created or downloaded a generic module called `foo` that you wanted
to load along with the default modules Your *~/.textadept/init.lua* would
contain the following:
- _M.textadept = require 'textadept'
_M.foo = require 'foo'
Language-specific modules are loaded automatically by Textadept when a source