From 48e0cd78552b79669a2ffe36c23d02bf123ee73c Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 11 Oct 2021 22:42:59 -0500 Subject: Only update with mu4e if no systemd timer --- init.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 8fc23ba..179f078 100644 --- a/init.el +++ b/init.el @@ -801,7 +801,11 @@ specific to most general, they are these: ("/Trash" . ?t))))))) mu4e-get-mail-command "mbsync -a" mu4e-maildir "~/mail" - mu4e-update-interval (* 10 60) + mu4e-update-interval (unless (file-exists-p + (expand-file-name + "systemd/user/mbsync.timer" + (getenv "XDG_CONFIG_HOME"))) + (* 60 5)) sendmail-program (seq-some #'executable-find '("msmtp" "sendmail")) @@ -1660,7 +1664,12 @@ See also `crux-reopen-as-root-mode'." (setup (:straight-when exec-path-from-shell (acdw/system :home)) (when (daemonp) - (exec-path-from-shell-initialize))) + (exec-path-from-shell-initialize)) + (exec-path-from-shell-copy-envs '("XDG_CONFIG_HOME" + "XDG_CONFIG_DIRS" + "XDG_DATA_HOME" + "XDG_DATA_DIRS" + "XDG_CACHE_HOME"))) (setup (:straight expand-region) (:global "C-=" #'er/expand-region)) -- cgit 1.4.1-21-gabe81