aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/9_Preferences.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/9_Preferences.md b/doc/manual/9_Preferences.md
index ab856bae..16791ef5 100644
--- a/doc/manual/9_Preferences.md
+++ b/doc/manual/9_Preferences.md
@@ -67,8 +67,8 @@ more information, see the [scripting](11_Scripting.html) page.
You can add global snippets to `_G.snippets` such as:
- _G.snippets['file'] = '%(buffer.filename)'
- _G.snippets['path'] = "%((buffer.filename or ''):match('^.+[/\\]'))"
+ _G.snippets['file'] = '%<buffer.filename>'
+ _G.snippets['path'] = "%<(buffer.filename or ''):match('^.+[/\\]')>"
So typing `file` or `path` and then pressing `Tab` will insert the snippet.
@@ -80,7 +80,7 @@ Textadept. Instead, modify `_G.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.an = new_buffer
_G.keys.cn = nil
## Locale