Skip to content

Instantly share code, notes, and snippets.

@genegoykhman
Created October 21, 2023 19:17
Show Gist options
  • Save genegoykhman/af213bdf94b276496f02b965ec62e223 to your computer and use it in GitHub Desktop.
Save genegoykhman/af213bdf94b276496f02b965ec62e223 to your computer and use it in GitHub Desktop.
mu4e: temporarily disable window splitting while sending email
;; 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