summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-11-19 23:16:06 +0100
committerAlan Pearce2019-11-19 23:16:06 +0100
commit38a8873c6514889a5500d59e20ec58e984dafd8a (patch)
tree5eff3d8cdd0f34e5ab74a63ed83a6f505610a07e
parent8b25fd5434932922b49f48ef96c5037fa2bb7c99 (diff)
downloadnixfiles-38a8873c6514889a5500d59e20ec58e984dafd8a.tar.lz
nixfiles-38a8873c6514889a5500d59e20ec58e984dafd8a.tar.zst
nixfiles-38a8873c6514889a5500d59e20ec58e984dafd8a.zip
Emacs: fix mu4e setup
-rw-r--r--user/emacs/.emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index 4aee1385..d535aa51 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -827,7 +827,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 (use-package mu4e
   :if (executable-find "mu")
   :commands (mu4e)
-  :init (setq mail-user-agent #'mu4e-user-agent)
+  :defines (mu4e-contexts)
   :custom ((mu4e-completing-read-function #'ivy-completing-read)
            (mu4e-maildir "~/mail")
            (mu4e-context-policy 'pick-first)
@@ -840,6 +840,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
          (with-eval-after-load 'evil-ex
            (evil-ex-define-cmd "mu[4e]" #'mu4e)))
   :config (progn
+            (setq mail-user-agent #'mu4e-user-agent)
             (setq mu4e-contexts (list
                                  (make-mu4e-context
                                   :name "SatoshiPay"