From d31f145e3036414fe81d01cc7f4b2e9f93dbd6ed Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Tue, 2 May 2023 15:05:17 +0200 Subject: [PATCH] Make mu4e open in currently focus window instead of taking up whole frame --- modules/graphical/mail/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/graphical/mail/default.nix b/modules/graphical/mail/default.nix index 5ad5eb6c..9abb01b2 100644 --- a/modules/graphical/mail/default.nix +++ b/modules/graphical/mail/default.nix @@ -146,6 +146,10 @@ in (message-send-mail-function 'message-send-mail-with-sendmail "Use sendmail to send mail instead internal smtp") (message-cite-reply-position 'below "Bottom posting is the correct way to reply to email") :config + ;; mu4e should just open in the currently focused window instead of taking up the whole frame + (add-to-list 'display-buffer-alist + `(,(regexp-quote mu4e-main-buffer-name) + display-buffer-same-window)) (setq mu4e-contexts (list ${lib.concatStringsSep "\n" (map mkAccountConfig (lib.attrValues hmConfig.accounts.email.accounts))})) (add-to-list 'mu4e-bookmarks