diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index 004356fa..d45c56bc 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -1164,6 +1164,12 @@ GNU patch review metho dor sometihng idk (setq mu4e-get-mail-command "offlineimap") (setq mu4e-maildir "~/Mail") + + (defvar outlook-mail-address nil) + (defvar proton-mail-address nil) + (defvar gmail-1-mail-address nil) + (defvar gmail-2-mail-address nil) + (add-hook 'mu4e-update-pre-hook 'sakomacs/pull-email-address) (defun sakomacs/pull-email-address () @@ -1189,12 +1195,7 @@ GNU patch review metho dor sometihng idk ) - - (defvar outlook-mail-address nil) - (defvar proton-mail-address nil) - (defvar gmail-1-mail-address nil) - (defvar gmail-2-mail-address nil) - + (setq mu4e-context-policy 'pick-first) (setq mu4e-compose-context-policy 'always-ask) (setq mu4e-contexts