From ddb05d56c188fe12b1098507da5c0f7c2a7212ec Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 12 Feb 2022 22:55:49 +0100 Subject: [PATCH] [mu4e] Don't load mu4e configuration on work computer --- config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 81629e1..fc4fdd4 100644 --- a/config.org +++ b/config.org @@ -1807,12 +1807,14 @@ Managing e-mails is maybe one of the most critical tasks in my life. Over the la Sadly since my workplace heavily uses Microsoft Office 365 including Outlook for mails I'm currently using Evolution, with a setup heavily inspired by [[https://karl-voit.at/2021/06/01/Thunderbird-to-Evolution/][Karl Voit]]. + ** Load mu4e Not all systems that I use have mu/mu4e installed. Either because I cannot really use it at work or because I'm running a native Windows instance or because I didn't completely setup the machine. Therefore I only load/execute the complete mu4e configuration if Emacs can find a =mu= executable. #+begin_src emacs-lisp -(when (executable-find "mu") ;; Closed after all mu4e configuration +(when (and (executable-find "mu") + (not (string-equal system-name "knuth"))) ;; Closed after all mu4e configuration #+end_src Not all distributions that I use have a enough up-to-date package of mu/maildir-utils in their repositories. Therefore on some system I compile and install it myself which ends in =/usr/local= instead of just =/usr.= Therefore I have a small function that finds the correct load-path for the mu4e package.