Configure saved searches for notmuch
Mimmicking the "action", "review", and "waiting" labels that I had in Gmail using the equivalent labels as tags in notmuch.
This commit is contained in:
parent
fa779ab7bf
commit
8105af7b8d
1 changed files with 25 additions and 1 deletions
|
@ -5,7 +5,31 @@
|
||||||
;; Attempting to configure to `notmuch' for my personal use.
|
;; Attempting to configure to `notmuch' for my personal use.
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(message "Not implemented.")
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; Dependencies
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(require 'notmuch)
|
||||||
|
(require 'list)
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;; Configuration
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
(setq notmuch-saved-searches '((:name "inbox" :query "tag:inbox" :key "i")
|
||||||
|
(:name "unread" :query "tag:unread" :key "u")
|
||||||
|
(:name "flagged" :query "tag:flagged" :key "f")
|
||||||
|
(:name "sent" :query "tag:sent" :key "t")
|
||||||
|
(:name "drafts" :query "tag:draft" :key "d")
|
||||||
|
(:name "all mail" :query "*" :key "A")
|
||||||
|
(:name "action" :query "tag:action" :key "a")
|
||||||
|
(:name "review" :query "tag:review" :key "r")
|
||||||
|
(:name "waiting" :query "tag:waiting" :key "w")))
|
||||||
|
|
||||||
|
;; Assert that no two saved searches share share a KBD
|
||||||
|
(prelude/assert
|
||||||
|
(list/xs-distinct-by? (lambda (x) (plist-get x :key)) notmuch-saved-searches))
|
||||||
|
|
||||||
(provide 'email)
|
(provide 'email)
|
||||||
;;; email.el ends here
|
;;; email.el ends here
|
||||||
|
|
Loading…
Reference in a new issue