From 61355f1c8660b97f27a3b4cc942f531643abbb24 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 3 Sep 1999 22:45:43 +0000 Subject: [PATCH] (double-mode): Customize the variable. --- lisp/double.el | 16 +++++++++++++--- 1 file 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 -- 2.39.5