diff options
author | Dave Love <fx@gnu.org> | 1999-09-03 22:45:43 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 1999-09-03 22:45:43 +0000 |
commit | 61355f1c8660b97f27a3b4cc942f531643abbb24 (patch) | |
tree | 5d61e175baf26b078f479e85b0da940ba0277f67 /lisp/double.el | |
parent | 55115f0920a244193b36d71d25f7bae0e3c693fb (diff) |
(double-mode): Customize the variable.
Diffstat (limited to 'lisp/double.el')
-rw-r--r-- | lisp/double.el | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lisp/double.el b/lisp/double.el index 7d318d9988a..84a66d29e43 100644 --- a/lisp/double.el +++ b/lisp/double.el @@ -157,9 +157,19 @@ but not `C-u X' or `ESC X' since the X is not the prefix key." ;;; Mode -(defvar double-mode nil) -;; Indicator for the double mode. - (make-variable-buffer-local 'double-mode) +;;;###autoload +(defcustom double-mode nil + "Toggle Double mode. +Setting this variable directly does not take effect; +use either \\[customize] or the function `double-mode'." + :set (lambda (symbol value) + (double-mode (if value 1 0))) + :initialize 'custom-initialize-default + :link '(emacs-commentary-link "double") + :type 'boolean + :require 'double + :group 'double) +(make-variable-buffer-local 'double-mode) (or (assq 'double-mode minor-mode-alist) (setq minor-mode-alist |