From 8de9423a384e5758fc98edd78308a93980801f03 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 27 Jun 2011 16:28:50 -0400 Subject: Strip '_G' references from manual; doc/manual/9_Preferences.md --- doc/manual/9_Preferences.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc') 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'] = '%' - _G.snippets['path'] = "%<(buffer.filename or ''):match('^.+[/\\]')>" + snippets['file'] = '%' + 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 -- cgit v1.2.3