aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-02-22 13:19:59 +0800
committerAaron LI <aaronly.me@gmail.com>2016-02-22 13:19:59 +0800
commit0c4c55436e0083c64131584b0009e83c15d4f13e (patch)
tree982b758f2be82fa22476b5e13cf226a2f4306026
parentd5b93c1e6a108999f769e1fa7a3b9dc7c10798b0 (diff)
downloaddotfiles-0c4c55436e0083c64131584b0009e83c15d4f13e.tar.bz2
_emacs.d/personal/mu4e.el: add mu4e extensions
-rw-r--r--_emacs.d/personal/mu4e.el22
1 files changed, 19 insertions, 3 deletions
diff --git a/_emacs.d/personal/mu4e.el b/_emacs.d/personal/mu4e.el
index 6878d5d..ad80acb 100644
--- a/_emacs.d/personal/mu4e.el
+++ b/_emacs.d/personal/mu4e.el
@@ -8,15 +8,29 @@
;;
;;; Commentary:
-;; mu4e (mu for Emacs) configurations
+;; mu4e (mu for Emacs) configurations with some extensions.
;; mu (maildir indexer/searcher): https://github.com/djcb/mu
;;; Code:
-;; mu4e package path
-(add-to-list 'load-path "~/local/emacs/site-lisp/mu4e")
+;; mu4e package
+;(add-to-list 'load-path "~/local/emacs/site-lisp/mu4e")
+(add-to-list 'load-path (expand-file-name "mu4e" prelude-personal-dir))
(require 'mu4e)
+;; mu4e extensions
+(prelude-require-packages '(evil-mu4e mu4e-maildirs-extension mu4e-alert))
+;; evil-mu4e
+(require 'evil-mu4e)
+;; mu4e-maildirs-extension
+(require 'mu4e-maildirs-extension)
+(mu4e-maildirs-extension)
+;; mu4e-alert
+(mu4e-alert-set-default-style 'libnotify)
+(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
+(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display)
+
+
;; turn on debug: log debug information to the *mu4e-log* buffer
(setq mu4e-debug t)
@@ -181,6 +195,8 @@
(setq mu4e-get-mail-command "offlineimap -o -1")
;(setq mu4e-get-mail-command "true" nil nil
; "Disable fetching mail as it is done by a daemon")
+;; get mail and update index periodically in the background (unit: seconds)
+(setq mu4e-update-interval 900)
;; frequent mail folders, with shortcuts
;; do not use shortcut `o' as it is used for `[o]ther'