tweak(helm): show mode-line by default

Let's not hide the minibuffer. It may be detrimental in cases where
certain helm commands actually display helpful information there. And
rather than design edge cases for a package I don't dogfood, and push
minimalism onto helm users, I'll lean onto the defaults more instead.

Ref: #6676
Co-authored-by: johanwiden <johanwiden@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2023-02-23 22:25:00 -05:00
parent f20fe0274d
commit fcf587fbe8
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -51,7 +51,6 @@ Can be negative.")
(setq helm-candidate-number-limit 50 (setq helm-candidate-number-limit 50
;; Remove extraineous helm UI elements ;; Remove extraineous helm UI elements
helm-display-header-line nil helm-display-header-line nil
helm-mode-line-string nil
helm-ff-auto-update-initial-value nil helm-ff-auto-update-initial-value nil
helm-find-files-doc-header nil helm-find-files-doc-header nil
;; Default helm window sizes ;; Default helm window sizes
@ -100,15 +99,6 @@ Can be negative.")
:config :config
(set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil) (set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil)
;; Hide the modeline in helm windows as it serves little purpose.
(defun +helm--hide-mode-line (&rest _)
(with-current-buffer (helm-buffer-get)
(unless helm-mode-line-string
(hide-mode-line-mode +1))))
(add-hook 'helm-after-initialize-hook #'+helm--hide-mode-line)
(advice-add #'helm-display-mode-line :override #'+helm--hide-mode-line)
(advice-add #'helm-ag-show-status-default-mode-line :override #'ignore)
;; Hide minibuffer if `helm-echo-input-in-header-line' ;; Hide minibuffer if `helm-echo-input-in-header-line'
(add-hook 'helm-minibuffer-set-up-hook #'helm-hide-minibuffer-maybe) (add-hook 'helm-minibuffer-set-up-hook #'helm-hide-minibuffer-maybe)