Tweak mu4e and enable notifs

This commit is contained in:
Nathan McCarty 2023-02-04 13:05:26 -05:00
parent be967d56b3
commit fc3499cefb
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
2 changed files with 23 additions and 1 deletions

View File

@ -988,7 +988,6 @@ Setup the maildirs we want to see, we'll show our notifications
'((:maildir "/nathan@mccarty.io/Folders/Notifications/Github" :key ?h)
(:maildir "/nathan@mccarty.io/Folders/Notifications/Gitlab" :key ?l)
(:maildir "/nathan@mccarty.io/Folders/Notifications/SourceHut" :key ?s)
(:maildir "/nathan@mccarty.io/Folders/Mailing Lists/Lobsters" :key ?a)
(:maildir "/nathan@mccarty.io/Folders/Archival/Receipts/2023" :key ?r)
(:maildir "/nathan@mccarty.io/Folders/Archival/Job Search" :key ?j)
(:maildir "/nathan@mccarty.io/Folders/Archival/Informed Delivery" :key ?i))))
@ -1005,6 +1004,28 @@ We need to tell mu4e to rename files when they are moved, or else mbsync will br
(after! mu4e
(setq mu4e-change-filenames-when-moving t))
#+end_src
Now setup notifications
#+begin_src emacs-lisp
(use-package! mu4e-alert
:config
(mu4e-alert-set-default-style 'libnotify)
(setq mu4e-alert-interesting-mail-query
(concat
"flag:unread"
" AND NOT flag:trashed"
" AND NOT maildir:"
"\"/nathan@mccarty.io/Spam\""
"\"/nathan@mccarty.io/Folders/Mailing Lists\""
"\"/nathan@mccarty.io/Trash\"")))
#+end_src
Add to the modeline and enable nofitications, but only when we are the daemon
#+begin_src emacs-lisp
(when (daemonp)
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display))
#+end_src
** [[https://github.com/stsquad/emacs_chrome][Edit with Emacs]]
#+begin_src emacs-lisp
(use-package! edit-server

View File

@ -76,3 +76,4 @@
(package! org-chef)
(package! keychain-environment)
(package! hotfuzz)
(package! mu4e-alert)