]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - emacs/.emacs
Use twmn to notify for email messages
[max/dotfiles.git] / emacs / .emacs
index c3eec872df8d8cf2a695cde76a011aaef7ac7474..d04d89ed9193e55817cec543edd42b12d39d64dc 100644 (file)
 
        mu4e-context-policy 'pick-first)
   (setq mu4e-html2text-command "lynx -stdin -dump -force_html"))
+(use-package mu4e-alert
+  :ensure t
+  :config
+  (setq mu4e-alert-interesting-mail-query
+       (concatenate
+        'string
+        "flag:unread "
+        "AND ( "
+        "maildir:/personal/Inbox OR "
+        "maildir:/personal/slackware OR "
+        "maildir:/personal-gmail/Inbox OR "
+        "maildir:/aber/Inbox "
+        ")"))
+  (mu4e-alert-set-default-style 'notifications)
+  (add-hook 'after-init-hook #'mu4e-alert-enable-notifications))
 
 
 ;;;(global-company-mode)