aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2005-09-05 11:52:21 +0000
committerChong Yidong2005-09-05 11:52:21 +0000
commit4242b8d6d1e8d8bf6338a085d9c691921a44be18 (patch)
treec220d39f9dc70303d5d459ef6ad6d86469969445
parent87d737aed0986cbe49a9d4ff8253c1ebbe7880d3 (diff)
downloademacs-4242b8d6d1e8d8bf6338a085d9c691921a44be18.tar.gz
emacs-4242b8d6d1e8d8bf6338a085d9c691921a44be18.zip
Document custom themes.
-rw-r--r--man/ChangeLog4
-rw-r--r--man/custom.texi56
2 files changed, 60 insertions, 0 deletions
diff --git a/man/ChangeLog b/man/ChangeLog
index 97473b2aa06..3f956c71625 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
12005-09-05 Chong Yidong <cyd@stupidchicken.com>
2
3 * custom.texi (Custom Themes): New node.
4
12005-09-03 Richard M. Stallman <rms@gnu.org> 52005-09-03 Richard M. Stallman <rms@gnu.org>
2 6
3 * search.texi (Search Case): Mention vars that control 7 * search.texi (Search Case): Mention vars that control
diff --git a/man/custom.texi b/man/custom.texi
index d531d92eb0f..87722f63b69 100644
--- a/man/custom.texi
+++ b/man/custom.texi
@@ -199,6 +199,8 @@ the active fields and other features.
199* Face Customization:: How to edit the attributes of a face. 199* Face Customization:: How to edit the attributes of a face.
200* Specific Customization:: Making a customization buffer for specific 200* Specific Customization:: Making a customization buffer for specific
201 variables, faces, or groups. 201 variables, faces, or groups.
202* Custom Themes:: How to define collections of customized options
203 that can be loaded and unloaded together.
202@end menu 204@end menu
203 205
204@node Customization Groups 206@node Customization Groups
@@ -652,6 +654,60 @@ changes. Use @kbd{M-x customize-saved} to look at the options that
652you have saved. Use @kbd{M-x customize-customized} to look at the 654you have saved. Use @kbd{M-x customize-customized} to look at the
653options that you have set but not saved. 655options that you have set but not saved.
654 656
657@node Custom Themes
658@subsection Customization Themes
659@cindex custom themes
660
661@dfn{Custom themes} are collections of customized options that can be
662enabled or disabled as a unit. You can use Custom themes to switch
663quickly and easily between various collections of settings, and to
664transfer such collections from one computer to another.
665
666@findex customize-create-theme
667To define a Custom theme, use the command
668@kbd{M-x customize-create-theme}, which brings up a buffer named
669@samp{*New Custom Theme*}. At the top of the buffer is an editable
670field where you can specify the name of the theme. To add a
671customization option to the theme, click on the @samp{INS} button to
672open up a field where you can insert the name of the option. The
673current value of that option is applied to the theme. After adding as
674many options as you like, click on @samp{Done} to save the Custom
675theme.
676
677@vindex custom-theme-directory
678Saving a Custom theme named @var{foo} writes its definition into the
679file @file{@var{foo}-theme.el}, in the directory @file{~/.emacs.d/}
680(you can specify the directory by setting
681@code{custom-theme-directory}).
682
683@findex load-theme
684@findex enable-theme
685@findex disable-theme
686You can load the themes you've previously defined with the command
687@code{load-theme}. It prompts for a theme name in the minibuffer,
688then loads that theme if it isn't already loaded. It also
689@dfn{enables} the theme, which means putting its settings into effect.
690An enabled theme can be @dfn{disabled} with the command
691@kbd{M-x disable-theme}; this returns the options specified in the
692theme to their original values. To re-enable the theme, use the
693command @kbd{M-x enable-theme}.
694
695To enable a Custom theme named @var{foo} whenever Emacs is started up,
696add the line @code{(load-theme '@var{foo})} to your @file{.emacs} file
697(@pxref{Init File}).
698
699Enabling a custom theme does not disable the themes already enabled;
700instead, they are all enabled together. If two enabled Custom themes
701specify different values for an option, the last theme to be enabled
702takes effect.
703
704The options that you set in the ordinary customization buffer
705(@pxref{Easy Customization}) are also considered part of a Custom
706theme, called @samp{user}. The @samp{user} theme is always enabled,
707and always takes precedence over all other enabled Custom themes.
708Additionally, the @samp{user} theme is recorded in your @file{.emacs}
709file, rather than a @file{user-theme.el} file.
710
655@node Variables 711@node Variables
656@section Variables 712@section Variables
657@cindex variable 713@cindex variable