From 7d114259d843766cd64b8071acbe0f8162d7542c Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 9 Oct 2015 13:28:45 -0400 Subject: emacs: Update notmuch config. --- dotfiles/.emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) 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") -- cgit v1.2.3