diff options
| author | Chong Yidong | 2005-09-05 11:52:21 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-09-05 11:52:21 +0000 |
| commit | 4242b8d6d1e8d8bf6338a085d9c691921a44be18 (patch) | |
| tree | c220d39f9dc70303d5d459ef6ad6d86469969445 | |
| parent | 87d737aed0986cbe49a9d4ff8253c1ebbe7880d3 (diff) | |
| download | emacs-4242b8d6d1e8d8bf6338a085d9c691921a44be18.tar.gz emacs-4242b8d6d1e8d8bf6338a085d9c691921a44be18.zip | |
Document custom themes.
| -rw-r--r-- | man/ChangeLog | 4 | ||||
| -rw-r--r-- | man/custom.texi | 56 |
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 @@ | |||
| 1 | 2005-09-05 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * custom.texi (Custom Themes): New node. | ||
| 4 | |||
| 1 | 2005-09-03 Richard M. Stallman <rms@gnu.org> | 5 | 2005-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 | |||
| 652 | you have saved. Use @kbd{M-x customize-customized} to look at the | 654 | you have saved. Use @kbd{M-x customize-customized} to look at the |
| 653 | options that you have set but not saved. | 655 | options 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 | ||
| 662 | enabled or disabled as a unit. You can use Custom themes to switch | ||
| 663 | quickly and easily between various collections of settings, and to | ||
| 664 | transfer such collections from one computer to another. | ||
| 665 | |||
| 666 | @findex customize-create-theme | ||
| 667 | To 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 | ||
| 670 | field where you can specify the name of the theme. To add a | ||
| 671 | customization option to the theme, click on the @samp{INS} button to | ||
| 672 | open up a field where you can insert the name of the option. The | ||
| 673 | current value of that option is applied to the theme. After adding as | ||
| 674 | many options as you like, click on @samp{Done} to save the Custom | ||
| 675 | theme. | ||
| 676 | |||
| 677 | @vindex custom-theme-directory | ||
| 678 | Saving a Custom theme named @var{foo} writes its definition into the | ||
| 679 | file @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 | ||
| 686 | You can load the themes you've previously defined with the command | ||
| 687 | @code{load-theme}. It prompts for a theme name in the minibuffer, | ||
| 688 | then loads that theme if it isn't already loaded. It also | ||
| 689 | @dfn{enables} the theme, which means putting its settings into effect. | ||
| 690 | An enabled theme can be @dfn{disabled} with the command | ||
| 691 | @kbd{M-x disable-theme}; this returns the options specified in the | ||
| 692 | theme to their original values. To re-enable the theme, use the | ||
| 693 | command @kbd{M-x enable-theme}. | ||
| 694 | |||
| 695 | To enable a Custom theme named @var{foo} whenever Emacs is started up, | ||
| 696 | add the line @code{(load-theme '@var{foo})} to your @file{.emacs} file | ||
| 697 | (@pxref{Init File}). | ||
| 698 | |||
| 699 | Enabling a custom theme does not disable the themes already enabled; | ||
| 700 | instead, they are all enabled together. If two enabled Custom themes | ||
| 701 | specify different values for an option, the last theme to be enabled | ||
| 702 | takes effect. | ||
| 703 | |||
| 704 | The options that you set in the ordinary customization buffer | ||
| 705 | (@pxref{Easy Customization}) are also considered part of a Custom | ||
| 706 | theme, called @samp{user}. The @samp{user} theme is always enabled, | ||
| 707 | and always takes precedence over all other enabled Custom themes. | ||
| 708 | Additionally, the @samp{user} theme is recorded in your @file{.emacs} | ||
| 709 | file, 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 |