diff options
author | 2011-06-27 16:28:50 -0400 | |
---|---|---|
committer | 2011-06-27 16:28:50 -0400 | |
commit | 8de9423a384e5758fc98edd78308a93980801f03 (patch) | |
tree | 34fef812e4d09e90db7bb0bf8abbc9938e2cdadd | |
parent | c494f4a2b14a2bd294ffdbe846fb29e887579199 (diff) | |
download | textadept-8de9423a384e5758fc98edd78308a93980801f03.tar.gz textadept-8de9423a384e5758fc98edd78308a93980801f03.zip |
Strip '_G' references from manual; doc/manual/9_Preferences.md
-rw-r--r-- | doc/manual/9_Preferences.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/manual/9_Preferences.md b/doc/manual/9_Preferences.md index 16791ef5..579874c6 100644 --- a/doc/manual/9_Preferences.md +++ b/doc/manual/9_Preferences.md @@ -65,10 +65,10 @@ more information, see the [scripting](11_Scripting.html) page. ##### Snippets -You can add global snippets to `_G.snippets` such as: +You can add global snippets to `snippets` such as: - _G.snippets['file'] = '%<buffer.filename>' - _G.snippets['path'] = "%<(buffer.filename or ''):match('^.+[/\\]')>" + snippets['file'] = '%<buffer.filename>' + snippets['path'] = "%<(buffer.filename or ''):match('^.+[/\\]')>" So typing `file` or `path` and then pressing `Tab` will insert the snippet. @@ -76,12 +76,12 @@ So typing `file` or `path` and then pressing `Tab` will insert the snippet. It is not recommended to edit Textadept's `modules/textadept/keys.lua` for changing the key bindings since your changes could be overwritten when updating -Textadept. Instead, modify `_G.keys` from within your `~/.textadept/init.lua` or +Textadept. Instead, modify `keys` from within your `~/.textadept/init.lua` or from a file loaded by `~/.textadept/init.lua`. For example maybe you want `Alt+N` to create a new buffer instead of `Ctrl+N`: - _G.keys.an = new_buffer - _G.keys.cn = nil + keys.an = new_buffer + keys.cn = nil ## Locale |