Created
October 21, 2023 19:17
-
-
Save genegoykhman/af213bdf94b276496f02b965ec62e223 to your computer and use it in GitHub Desktop.
mu4e: temporarily disable window splitting while sending email
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Temporarily disable window splitting while sending mu4e email | |
(defun my/mu4e-split-single-window (&rest args) | |
(setq mu4e-split-view 'single-window)) | |
(defun my/mu4e-split-horizontal (&rest args) | |
(setq mu4e-split-view 'horizontal)) | |
(advice-add 'message-send-and-exit :before #'my/mu4e-split-single-window) | |
(advice-add 'mu4e-sent-handler :after #'my/mu4e-split-horizontal) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment