diff options
author | 2017-11-12 22:10:53 -0500 | |
---|---|---|
committer | 2017-11-12 22:10:53 -0500 | |
commit | da9fb004a0ef7b39624e3bc732b6a2439591d80d (patch) | |
tree | 8d79751b383f0f77ce7e13c86bf8202b5b897df4 /core/.buffer.luadoc | |
parent | 64cb1a3dad7f940970c74f2f98492565aeb9fc17 (diff) | |
download | textadept-da9fb004a0ef7b39624e3bc732b6a2439591d80d.tar.gz textadept-da9fb004a0ef7b39624e3bc732b6a2439591d80d.zip |
Buffer settings on startup apply to subsequent buffers.
As a result, no need for a *properties.lua* file anymore. Also, renamed
`ui.set_theme()` to `buffer.set_theme()`.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r-- | core/.buffer.luadoc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index 79d0bb62..49e4309b 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -3112,6 +3112,20 @@ function get_lexer(buffer, current) end -- @usage buffer:set_lexer('lexer_name') function set_lexer(buffer, lexer) end +--- +-- Declares the editor theme to be string *name* and (optionally) assigns the +-- properties contained in table *props*. +-- User themes override Textadept's default themes when they have the same name. +-- If *name* contains slashes, it is assumed to be an absolute path to a theme +-- instead of a theme name. +-- Note: this function must be called on startup in order to be effective. +-- @param name The name or absolute path of a theme to set. +-- @param props Optional table of theme property assignments that override the +-- theme's defaults. +-- @usage buffer.set_theme('light', {font = 'Monospace', fontsize = 12}) +-- @name set_theme +function set_theme(name, props) end + -- Unused Fields. -- * annotation_style_offset -- * annotation_styles |