aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/rsz-mini.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1998-01-03 07:17:25 +0000
committerRichard M. Stallman <[email protected]>1998-01-03 07:17:25 +0000
commit6fc7e037746e106f8d47d28412dcb7cddbf9d593 (patch)
treec2636775191b0cfb4702c5a250c720f0c3701e27 /lisp/rsz-mini.el
parent835766b6edb523d051b23ecf8a1ebd50e48f4915 (diff)
(resize-minibuffer-mode): Variable customized to
automatically load the package.
Diffstat (limited to 'lisp/rsz-mini.el')
-rw-r--r--lisp/rsz-mini.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/rsz-mini.el b/lisp/rsz-mini.el
index 647f1d46cc..d1e3af9276 100644
--- a/lisp/rsz-mini.el
+++ b/lisp/rsz-mini.el
@@ -7,7 +7,7 @@
;; Maintainer: [email protected]
;; Keywords: minibuffer, window, frame, display
-;; $Id$
+;; $Id: rsz-mini.el,v 1.17 1997/06/23 08:21:26 friedman Exp rms $
;; This file is part of GNU Emacs.
@@ -61,11 +61,15 @@
"Dynamically resize minibuffer to display entire contents"
:group 'frames)
-;;;###autoload
(defcustom resize-minibuffer-mode nil
- "*If non-`nil', resize the minibuffer so its entire contents are visible."
+ "*If non-`nil', resize the minibuffer so its entire contents are visible.
+You must modify via \\[customize] for this variable to have an effect."
+ :set (lambda (symbol value)
+ (resize-minibuffer-mode (if value 1 -1)))
+ :initialize 'custom-initialize-default
:type 'boolean
- :group 'resize-minibuffer)
+ :group 'resize-minibuffer
+ :require 'rsz-mini)
;;;###autoload
(defcustom resize-minibuffer-window-max-height nil
@@ -262,6 +266,9 @@ respectively."
(frame-width)
resize-minibuffer-frame-original-height))
+(if resize-minibuffer-mode
+ (resize-minibuffer-mode 1))
+
(provide 'rsz-mini)
;; rsz-mini.el ends here