From 64ec422c0a6da08710578ae92282cfb4bcb50f5f Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 15 May 2013 09:58:04 -0400 Subject: `_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. --- doc/08_Preferences.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'doc/08_Preferences.md') 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 -- cgit v1.2.3