aboutsummaryrefslogtreecommitdiff
path: root/core/.buffer.luadoc
diff options
context:
space:
mode:
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r--core/.buffer.luadoc14
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