comparison man/xemacs/custom.texi @ 775:7d972c3de90a

[xemacs-hg @ 2002-03-14 11:50:12 by stephent] New 21.5 Info docs, misc. <87r8mn8j4v.fsf@tleeps18.sk.tsukuba.ac.jp>
author stephent
date Thu, 14 Mar 2002 11:50:17 +0000
parents b9f1a2e84ead
children 732270854293
comparison
equal deleted inserted replaced
774:703228f54913 775:7d972c3de90a
15 file to do the customization in each session. @xref{Init File}. 15 file to do the customization in each session. @xref{Init File}.
16 16
17 @menu 17 @menu
18 * Minor Modes:: Each minor mode is one feature you can turn on 18 * Minor Modes:: Each minor mode is one feature you can turn on
19 independently of any others. 19 independently of any others.
20 * Behaviors:: Like minor modes, behaviors are independent of other
21 features, but behaviors are usually enabled globally,
22 while minor modes are per-buffer and often temporary.
20 * Variables:: Many Emacs commands examine Emacs variables 23 * Variables:: Many Emacs commands examine Emacs variables
21 to decide what to do; by setting variables, 24 to decide what to do; by setting variables,
22 you can control their functioning. 25 you can control their functioning.
23 * Keyboard Macros:: A keyboard macro records a sequence of keystrokes 26 * Keyboard Macros:: A keyboard macro records a sequence of keystrokes
24 to be replayed with a single command. 27 to be replayed with a single command.
72 @cindex Abbrev mode 75 @cindex Abbrev mode
73 @findex abbrev-mode 76 @findex abbrev-mode
74 Abbrev mode allows you to define abbreviations that automatically expand 77 Abbrev mode allows you to define abbreviations that automatically expand
75 as you type them. For example, @samp{amd} might expand to @samp{abbrev 78 as you type them. For example, @samp{amd} might expand to @samp{abbrev
76 mode}. @xref{Abbrevs}, for full information. 79 mode}. @xref{Abbrevs}, for full information.
80
81 @c Updated for 21.5.6 2002/03/13 sjt
82 @node Behaviors
83 @section Behaviors
84 @cindex behavior
85
86 Some functionality requires a fair amount of effort to enable globally
87 in a session. For example, someone who discovers filladapt and really
88 likes it must toggle it separately in each buffer. On the other hand,
89 after trying it for a while she might like to disable it everywhere,
90 having decided it doesn't work very well for her. Such a functionality
91 is called a @dfn{behavior}.
92
93 The package developer will register behaviors with XEmacs. Then the
94 user invokes the @code{enable-behavior} and @code{disable-behavior}
95 functions to enable or disable a given behavior. The behavior registry
96 was introduced in XEmacs 21.5.6.
97
98 @defun enable-behavior behavior [force]
99 Called interactively, prompt the user, read a behavior symbol name with
100 completion for @var{behavior}, and take @var{force} from the prefix
101 argument. Then enable the behavior registered under the symbol
102 @var{behavior}.
103
104 The optional argument @var{force} is unimplemented in 21.5.6.
105 @end defun
106
107 @defun disable-behavior behavior [force]
108 Called interactively, prompt the user, read a behavior symbol name with
109 completion for @var{behavior}, and take @var{force} from the prefix
110 argument. Then disable the behavior registered under the symbol
111 @var{behavior}.
112
113 The optional argument @var{force} is unimplemented in 21.5.6.
114 @end defun
115
77 116
78 @node Variables 117 @node Variables
79 @section Variables 118 @section Variables
80 @cindex variable 119 @cindex variable
81 @cindex option 120 @cindex option