283 |
operation of a certain feature. Assuming that the package is coded to |
operation of a certain feature. Assuming that the package is coded to |
284 |
check the value of the option, you still need to arrange for the package |
check the value of the option, you still need to arrange for the package |
285 |
to be loaded. You can do that with @code{:require}. @xref{Common |
to be loaded. You can do that with @code{:require}. @xref{Common |
286 |
Keywords}. Here is an example, from the library @file{tooltip.el}: |
Keywords}. Here is an example, from the library @file{saveplace.el}: |
287 |
|
|
288 |
@example |
@example |
289 |
(defcustom tooltip-mode nil |
(defcustom save-place nil |
290 |
"Non-nil if Tooltip mode is enabled..." |
"*Non-nil means automatically save place in each file..." |
|
:set (lambda (symbol value) |
|
|
(tooltip-mode (or value 0))) |
|
|
:initialize 'custom-initialize-default |
|
291 |
:type 'boolean |
:type 'boolean |
292 |
:require 'tooltip |
:require 'saveplace |
293 |
:group 'tooltip) |
:group 'save-place) |
294 |
@end example |
@end example |
295 |
|
|
296 |
If a customization item has a type such as @code{hook} or @code{alist}, |
If a customization item has a type such as @code{hook} or @code{alist}, |