From: Dave Love Date: Fri, 3 Sep 1999 22:45:43 +0000 (+0000) Subject: (double-mode): Customize the variable. X-Git-Tag: emacs-pretest-21.0.90~6911 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=61355f1c8660b97f27a3b4cc942f531643abbb24;p=emacs.git (double-mode): Customize the variable. --- 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