reddit / emacs

Mu4e-header view: calculate window-body-width after the window has been maximized

zoliky ยท 2022-07-29 12:13
Hello, I have this option in `early-init.el` which starts the Emacs frame maximized: (push '(fullscreen . maximized) default-frame-alist) However, when I run Emacs in daemon mode and I connect with `emacsclient -c` there might be some very short delay until the Emacs frame is maximized because `mu4e-headers` calculate the `mu4e-headers` using the small window size which I don't want. I want it to be calculated using the maximized window size (use-package mu4e-headers :ensure nil :after mu4e :custom (mu4e-headers-auto-update t) (mu4e-headers-fields `((:human-date . 12) (:flags . 6) (:from . 22) (:subject . ,(- (window-body-width) 50))))) Is there any other variable like `window-body-width` that uses the width of the maximized window?