aboutsummaryrefslogtreecommitdiff
path: root/doc/manual.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-03-25 17:02:19 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-03-25 17:02:19 -0400
commit19c485ca82cf49432999449e26af86797f112796 (patch)
treef87c6577f3044bc9684ca277800416b9fd16afdf /doc/manual.md
parent7d9db724a530d62f4d63a7b9543bc754f21041e4 (diff)
downloadtextadept-19c485ca82cf49432999449e26af86797f112796.tar.gz
textadept-19c485ca82cf49432999449e26af86797f112796.zip
Removed call restriction on `buffer.set_theme()` and added initial `buffer` arg.
Diffstat (limited to 'doc/manual.md')
-rw-r--r--doc/manual.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual.md b/doc/manual.md
index 2fa76425..fcd5c51a 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -1284,7 +1284,7 @@ display these standard colors (which may be completely different in the end).
Override the default theme in your [*~/.textadept/init.lua*](#User.Init) using
the [`buffer.set_theme()`][] function. For example:
- buffer.set_theme(not CURSES and 'dark' or 'term')
+ buffer:set_theme(not CURSES and 'dark' or 'term')
Either restart Textadept for changes to take effect or type [`reset`][] in the
[command entry](#Lua.Command.Entry).
@@ -1292,7 +1292,7 @@ Either restart Textadept for changes to take effect or type [`reset`][] in the
`buffer.set_theme()` can also tweak theme properties like font face and font
size without editing the theme file itself:
- buffer.set_theme('light', {font = 'Monospace', fontsize = 12})
+ buffer:set_theme('light', {font = 'Monospace', fontsize = 12})
You can even tweak themes on a per-language basis. For example, in order to
color Java functions black instead of the default orange, add the following to