summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-08-31 18:24:43 +0200
committerAlan Pearce2017-08-31 18:24:43 +0200
commit6045fa207e8844b7b91cf56f2349094c29fd7719 (patch)
treecfe7b1b33277fedd86aa5010bcf92dbd1739631b /emacs
parent46a28c0496d4d8422056011556bde12e759ff6d1 (diff)
parent508479288c0843099d8f11da65a62e3d20950af8 (diff)
downloaddotfiles-6045fa207e8844b7b91cf56f2349094c29fd7719.tar.lz
dotfiles-6045fa207e8844b7b91cf56f2349094c29fd7719.tar.zst
dotfiles-6045fa207e8844b7b91cf56f2349094c29fd7719.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el43
1 files changed, 22 insertions, 21 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index e50fdad..e79c605 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1368,27 +1368,28 @@
 ;; *** mu
 
 ;; #+BEGIN_SRC emacs-lisp
-(add-to-list 'load-path (expand-file-name
-                         "../share/emacs/site-lisp/mu4e"
-                         (f-dirname
-                          (file-truename
-                           (executable-find "mu")))))
-(use-package mu4e
-  :config
-  (setq mu4e-use-fancy-chars nil
-        mu4e-attachment-dir "~/Downloads/"
-        mu4e-view-show-images t
-        mu4e-headers-date-format "%Y-%m-%d %H:%M"
-
-        mu4e-mu-home (expand-file-name "~/.cache/mu/alanpearce.eu")
-        mu4e-maildir (expand-file-name "~/mail/personal/alanpearce/")
-        mu4e-sent-folder "/Sent"
-        mu4e-drafts-folder "/Drafts"
-        mu4e-refile-folder "/Archive"
-        mu4e-trash-folder "/Trash"
-
-        message-send-mail-function #'message-send-mail-with-sendmail
-        sendmail-program "msmtp"
+(when (executable-find "mu")
+  (add-to-list 'load-path (expand-file-name
+                           "../share/emacs/site-lisp/mu4e"
+                           (f-dirname
+                            (file-truename
+                             (executable-find "mu")))))
+  (use-package mu4e
+    :config
+    (setq mu4e-use-fancy-chars nil
+          mu4e-attachment-dir "~/Downloads/"
+          mu4e-view-show-images t
+          mu4e-headers-date-format "%Y-%m-%d %H:%M"
+
+          mu4e-mu-home (expand-file-name "~/.cache/mu/alanpearce.eu")
+          mu4e-maildir (expand-file-name "~/mail/personal/alanpearce/")
+          mu4e-sent-folder "/Sent"
+          mu4e-drafts-folder "/Drafts"
+          mu4e-refile-folder "/Archive"
+          mu4e-trash-folder "/Trash"
+
+          message-send-mail-function #'message-send-mail-with-sendmail
+          sendmail-program "msmtp"
 
         mu4e-maildir-shortcuts '(("/INBOX" . ?i))
         mu4e-contexts