[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can specify keyword-argument pairs in a customization type after the type name symbol. Here are the keywords you can use, and their meanings:
:value default
choice
; it specifies the default value to use, at first, if and
when the user selects this alternative with the menu in the
customization buffer.
Of course, if the actual value of the option fits this alternative, it will appear showing the actual value, not default.
If nil
is not a valid value for the alternative, then it is
essential to specify a valid default with :value
.
:format format-string
:action
attribute specifies what the button will do if the user invokes it;
its value is a function which takes two arguments--the widget which
the button appears in, and the event.
There is no way to specify two different buttons with different actions.
:sample-face
.
:tag
keyword.
:action action
:button-face face
:button-prefix prefix
:button-suffix suffix
nil
:tag tag
:doc doc
:format
, and use `%d' or `%h'
in that value.
The usual reason to specify a documentation string for a type is to
provide more information about the meanings of alternatives inside a
:choice
type or the parts of some other composite type.
:help-echo motion-doc
widget-forward
or
widget-backward
, it will display the string motion-doc in
the echo area. In addition, motion-doc is used as the mouse
help-echo
string and may actually be a function or form evaluated
to yield a help string as for help-echo
text properties.
:match function
nil
if
the value is acceptable.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |