summaryrefslogtreecommitdiff
path: root/dotfiles/.emacs.d
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-10-09 13:28:45 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-10-09 13:28:45 -0400
commit7d114259d843766cd64b8071acbe0f8162d7542c (patch)
tree282dcf61ef50f168595f73fa24bb1ef48e8e1a0e /dotfiles/.emacs.d
parent6f7cba15434c096e6c46a6de4da676890bce45ef (diff)
emacs: Update notmuch config.
Diffstat (limited to 'dotfiles/.emacs.d')
-rw-r--r--dotfiles/.emacs.d/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/dotfiles/.emacs.d/init.el b/dotfiles/.emacs.d/init.el
index 35e93bc..649c8f4 100644
--- a/dotfiles/.emacs.d/init.el
+++ b/dotfiles/.emacs.d/init.el
@@ -399,10 +399,16 @@ indentation."
:query ,(concat "tag:" tag " AND date:today..today")
:sort-order newest-first))
+ (defun unread-mail-by-tag (tag)
+ `(:name ,tag
+ :query ,(concat "tag:" tag " AND tag:unread")
+ :sort-order newest-first))
+
(setf notmuch-saved-searches
`((:name "inbox"
:query "tag:inbox"
:sort-order newest-first)
+ ,(unread-mail-by-tag "guile")
,(recent-mail-by-tag "semaphore")
,(recent-mail-by-tag "airbrake")
,(recent-mail-by-tag "nagios")