[Emacs] mu4e-alert documentation and better config

This commit is contained in:
Lucien Cartier-Tilet 2021-06-11 18:33:19 +02:00
parent ed62dae4fb
commit dc70babfc3
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -1335,10 +1335,21 @@ the major-mode leader and call a simple function.
(buffer-string))))))
#+end_src
**** Email alerts
There is also a package for mu4e which generates desktop notifications
when new emails are received. By default, I want to be notified by all
messages in my inbox and junk folder. Also, Ill use Emacs default
notification system, and Ill activate the modeline notification.
#+begin_src emacs-lisp
(use-package mu4e-alert
:straight (:build t)
:after mu4e)
:defer t
:init
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display)
(mu4e-alert-set-default-style 'notifications)
:config
(setq mu4e-alert-interesting-mail-query "<<mu4e-bookmarks-default-filter()>>"))
#+end_src
*** PDF Tools