Skip to content

Commit

Permalink
tweak(daemon): ensure keeping mu4e alive in background
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Apr 6, 2023
1 parent 2460e18 commit 2358e3d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modules/me-daemon.el
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
;; Email (mu4e)
(+lazy-when! (memq 'me-email minemacs-modules)
(when (require 'mu4e nil t)
(unless (mu4e-running-p)
(let ((inhibit-message t))
(mu4e t)
(+info! "Started `mu4e' in background.")))))
(run-with-idle-timer
0 (* 3 60)
(lambda ()
(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 2358e3d

Please sign in to comment.