From aa8ba02885a626a63f5c29d6130697b10cff594e Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 29 Nov 2023 06:27:50 +0200 Subject: emacs:(mu4e) Do update interval when emacs is running as server --- .emacs.d/modules/thanos-mu4e.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.emacs.d/modules') 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', -- cgit v1.2.3