]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - emacs/.emacs
Use twmn to notify for email messages
[max/dotfiles.git] / emacs / .emacs
index 9f438857aa551c3c1dda6194231676563a2afa5e..d04d89ed9193e55817cec543edd42b12d39d64dc 100644 (file)
           "/usr/bin/mbsync -c /home/max/.mbsync/personal-gmail.mbsync -a &&"
           "/usr/bin/mbsync -c /home/max/.mbsync/aber.mbsync -a")
    mu4e-update-interval 60)
+  ; Force mu4e to rename file on moving
+  (setq mu4e-change-filenames-when-moving t)
   (setq
    message-send-mail-function 'smtpmail-send-it
    smtpmail-default-smtp-server "mail.friedersdorff.com"
                     (smtpmail-smtp-server . "smtp.office365.com")
                     (smtpmail-smtp-service . 587))))
 
-       mu4e-context-policy 'pick-first))
+       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)