tweak(mu4e): remove +mu4e-headers-frame-maybe

Changing the size of the frame is a mote more intrusive than I'd like
any Doom module to be.

Fix: #5870
Close: #8674
This commit is contained in:
Henrik Lissner 2026-02-13 18:23:13 -05:00
parent 29bc91bca5
commit fef48ab085
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -190,9 +190,6 @@ is non-nil."
nerd-icons-yellow)
"Faces to use when coloring folders and account stripes.")
(defvar +mu4e-min-header-frame-width 120
"Minimum reasonable with for the header view.")
;; Add a column to display what email account the email belongs to,
;; and an account color stripe column
(defvar +mu4e-header--maildir-colors nil)
@ -263,20 +260,6 @@ is non-nil."
(insert (read-string "Subject (optional): "))
(message "Sending..."))))))
;; The header view needs a certain amount of horizontal space to actually show
;; you all the information you want to see so if the header view is entered
;; from a narrow frame, it's probably worth trying to expand it
(defvar +mu4e-min-header-frame-width 120
"Minimum reasonable with for the header view.")
(add-hook! 'mu4e-headers-mode-hook
(defun +mu4e-widen-frame-maybe ()
"Expand the mu4e-headers containing frame's width to `+mu4e-min-header-frame-width'."
(dolist (frame (frame-list))
(when (and (string= (buffer-name (window-buffer (frame-selected-window frame)))
mu4e-headers-buffer-name)
(< (frame-width) +mu4e-min-header-frame-width))
(set-frame-width frame +mu4e-min-header-frame-width)))))
;; Fix columns misalignment in Headers buffers
(add-hook! 'mu4e-headers-mode-hook
(defun +mu4e-headers-fix-alignment-h ()