summaryrefslogtreecommitdiff
path: root/.emacs.d/modules
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-11-29 06:27:50 +0200
committerThanos Apollo <[email protected]>2023-11-29 06:27:50 +0200
commitaa8ba02885a626a63f5c29d6130697b10cff594e (patch)
tree5bc8cfa280b167bd1902ce7173f51ff441116007 /.emacs.d/modules
parent0865bbbcd9d30e309f6e56d5c00316da855d5427 (diff)
emacs:(mu4e) Do update interval when emacs is running as server
Diffstat (limited to '.emacs.d/modules')
-rw-r--r--.emacs.d/modules/thanos-mu4e.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/modules/thanos-mu4e.el b/.emacs.d/modules/thanos-mu4e.el
index 709b4f9..8a09b95 100644
--- a/.emacs.d/modules/thanos-mu4e.el
+++ b/.emacs.d/modules/thanos-mu4e.el
@@ -35,10 +35,11 @@
(require 'mu4e)
-(when is-zeus (setf mu4e-update-interval (* 10 60)))
-
(setf mu4e-get-mail-command "mbsync -a")
+(when (and is-zeus (server-running-p))
+ (setf mu4e-update-interval (* 10 60)))
+
(defun set-mu4e-context (context-name full-name mail-address signature)
"Return a mu4e context named CONTEXT-NAME with :match-func matching
folder name CONTEXT-NAME in Maildir. The context's `user-mail-address',