Skip to content

Commit

Permalink
fix(daemon): avoid running mu4e repeatedly
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Apr 16, 2023
1 parent 024a05e commit c784d05
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions modules/me-daemon.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
;; Email (mu4e)
(+lazy-when! (memq 'me-email minemacs-modules)
(when (require 'mu4e nil t)
(run-with-idle-timer
0 (* 3 60)
(lambda ()
(unless (mu4e-running-p)
(+info! "Starting `mu4e' in background.")
(let ((inhibit-message t))
(mu4e t)))))))
(unless (mu4e-running-p)
(+info! "Starting `mu4e' in background.")
(let ((inhibit-message t))
(mu4e t)))))

;; RSS (elfeed)
(+lazy-when! (memq 'me-rss minemacs-modules)
Expand Down

0 comments on commit c784d05

Please sign in to comment.