summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/.emacs.d/init.el15
1 files changed, 13 insertions, 2 deletions
diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el
index 57f54ec..ac5c821 100644
--- a/dotfiles/.emacs.d/init.el
+++ b/dotfiles/.emacs.d/init.el
@@ -32,7 +32,8 @@
rainbow-delimiters
smex
web-mode
- projectile))
+ projectile
+ markdown-mode))
(defun install-missing-packages ()
"Install all required packages that haven't been installed."
@@ -330,8 +331,18 @@ might be bad."
("dthompson@vistahigherlearning.com" . "VHL/Sent Items")
(".*" . "sent")))
+ (defun recent-mail-by-tag (tag)
+ `(:name ,tag
+ :query ,(concat "tag:" tag " AND date:today..today")
+ :sort-order newest-first))
+
(setf notmuch-saved-searches
- '((:name "inbox" :query "tag:inbox" :sort-order newest-first)))
+ `((:name "inbox"
+ :query "tag:inbox"
+ :sort-order newest-first)
+ ,(recent-mail-by-tag "semaphore")
+ ,(recent-mail-by-tag "airbrake")
+ ,(recent-mail-by-tag "nagios")))
(define-key notmuch-search-mode-map "u"
(lambda ()