summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")