Mu4e: Relocate min-frames-width statement

This commit is contained in:
TEC 2021-07-29 17:58:54 +08:00
parent a39f7b0ced
commit 59178f2d71
No known key found for this signature in database
GPG key ID: 779591AFDB81F06C

View file

@ -100,6 +100,9 @@
all-the-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)
@ -160,8 +163,6 @@
;; 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.")
(defun mu4e-widen-frame-maybe ()
"Expand the frame with if it's less than `+mu4e-min-header-frame-width'."
(when (< (frame-width) +mu4e-min-header-frame-width)