summaryrefslogtreecommitdiff
path: root/doc/emacs/custom.texi
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-09-06 20:53:35 +0200
committerPhilip Kaludercic <philipk@posteo.net>2022-09-11 13:10:55 +0200
commitf31b9d86a67f1b3fd70339f277dff52478890351 (patch)
treee6669407a67ca6c4bcf4e4c8b4243dd9c04b8b8f /doc/emacs/custom.texi
parent1d08e480201f39c99a964f090672308b8c92bef8 (diff)
downloademacs-f31b9d86a67f1b3fd70339f277dff52478890351.tar.gz
Add new command 'toggle-theme'
* doc/emacs/custom.texi (Custom Themes): Mention it. * etc/themes/leuven-dark-theme.el (leuven-dark): Add dual theme. * etc/themes/leuven-theme.el (leuven): Add dual theme. * etc/themes/tango-dark-theme.el (tango-dark): Add dual theme. * etc/themes/tango-theme.el (tango): Add dual theme. * etc/themes/tsdh-dark-theme.el (tsdh-dark): Add dual theme. * etc/themes/tsdh-light-theme.el (tsdh-light): Add dual theme. * lisp/cus-theme.el (describe-theme-1): Say if a theme has a dual. * lisp/custom.el (toggle-theme): Add new command.
Diffstat (limited to 'doc/emacs/custom.texi')
-rw-r--r--doc/emacs/custom.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index ff7ab83190c..3dabba9d2fd 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -667,6 +667,11 @@ type @kbd{M-x disable-theme}.
the @file{*Custom Themes*} buffer; or type @kbd{M-x describe-theme}
anywhere in Emacs and enter the theme name.
+@findex toggle-theme
+ Some themes have dual variants (most often these are light and dark
+pairs). You can switch between these by typing @kbd{M-x
+toggle-theme}. Note that this only works if only one theme is active.
+
@node Creating Custom Themes
@subsection Creating Custom Themes
@cindex custom themes, creating