From da9fb004a0ef7b39624e3bc732b6a2439591d80d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 12 Nov 2017 22:10:53 -0500 Subject: 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()`. --- core/.buffer.luadoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'core/.buffer.luadoc') 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 -- cgit v1.2.3