summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2019-09-24 17:46:31 +0200
committerAlan Pearce2019-09-24 17:46:31 +0200
commit331b20306c606afcf71ff895fa20d336df9e344d (patch)
tree6fa83dab323c29a7a2cdc7c389ab237be69255ad /emacs
parent4251ec53ff880094f0057e93993bc3354ecf91a7 (diff)
downloadnixfiles-331b20306c606afcf71ff895fa20d336df9e344d.tar.lz
nixfiles-331b20306c606afcf71ff895fa20d336df9e344d.tar.zst
nixfiles-331b20306c606afcf71ff895fa20d336df9e344d.zip
Emacs: delay loading of mu4e
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 160dc071..c7960ca8 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -756,6 +756,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)
   :custom ((mu4e-completing-read-function #'ivy-completing-read)
            (mu4e-maildir "~/mail")
@@ -765,9 +766,10 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
            (mu4e-index-lazy-check t)
            (mu4e-hide-index-messages t)
            (mu4e-compose-format-flowed t))
+  :init (progn
+         (with-eval-after-load 'evil-ex
+           (evil-ex-define-cmd "mu[4e]" #'mu4e)))
   :config (progn
-            (with-eval-after-load 'evil-ex
-              (evil-ex-define-cmd "mu[4e]" #'mu4e))
             (setq mu4e-contexts (list
                                  (make-mu4e-context
                                   :name "SatoshiPay"