From 50071cd72c12ef6ab31cd257ee2339bf2b1980c1 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 1 Apr 2011 17:13:28 -0400 Subject: Updated manual; doc/manual/9_Preferences.md --- doc/manual/9_Preferences.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/manual') 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'] = '%' + _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 -- cgit v1.2.3