Don't grow minibuffer when echoing large messages

Unless we're in the minibuffer (e.g. eval-expression, ivy or evil-ex)

Also makes direnv summaries less imposing.
This commit is contained in:
Henrik Lissner 2019-07-10 21:27:46 +02:00
parent a201409fdd
commit 1f84c206d6
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -187,7 +187,6 @@ read-only or not file-visiting."
max-mini-window-height 0.3 max-mini-window-height 0.3
mode-line-default-help-echo nil ; disable mode-line mouseovers mode-line-default-help-echo nil ; disable mode-line mouseovers
mouse-yank-at-point t ; middle-click paste at point, not at click mouse-yank-at-point t ; middle-click paste at point, not at click
resize-mini-windows 'grow-only ; Minibuffer resizing
show-help-function nil ; hide :help-echo text show-help-function nil ; hide :help-echo text
use-dialog-box nil ; always avoid GUI use-dialog-box nil ; always avoid GUI
uniquify-buffer-name-style 'forward uniquify-buffer-name-style 'forward
@ -223,6 +222,10 @@ read-only or not file-visiting."
(add-to-list 'default-frame-alist '(vertical-scroll-bars)) (add-to-list 'default-frame-alist '(vertical-scroll-bars))
;; prompts the user for confirmation when deleting a non-empty frame ;; prompts the user for confirmation when deleting a non-empty frame
(global-set-key [remap delete-frame] #'doom/delete-frame) (global-set-key [remap delete-frame] #'doom/delete-frame)
;; don't resize minibuffer for large text
(setq resize-mini-windows nil)
;; Except when it's asking for input
(setq-hook! 'minibuffer-setup-hook resize-mini-windows 'grow-only)
;; Use `show-trailing-whitespace' instead of `whitespace-mode' because it's ;; Use `show-trailing-whitespace' instead of `whitespace-mode' because it's
;; faster (implemented in C). But try to only enable it in editing buffers. ;; faster (implemented in C). But try to only enable it in editing buffers.