Mercurial > emacs
changeset 25531:e42d6599cade
(double-mode): Customize the variable.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 03 Sep 1999 22:45:43 +0000 |
parents | 2b059707aa22 |
children | 9ed9cbc425fe |
files | lisp/double.el |
diffstat | 1 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/double.el Fri Sep 03 18:50:06 1999 +0000 +++ b/lisp/double.el Fri Sep 03 22:45:43 1999 +0000 @@ -157,9 +157,19 @@ ;;; 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