2019-12-23 11:55:21 +01:00
|
|
|
;;; email.el --- My Emacs email settings -*- lexical-binding: t -*-
|
|
|
|
;; Author: William Carroll <wpcarro@gmail.com>
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
;; Attempting to configure to `notmuch' for my personal use.
|
|
|
|
|
|
|
|
;;; Code:
|
2020-02-14 16:35:55 +01:00
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Dependencies
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
|
|
(require 'notmuch)
|
|
|
|
(require 'list)
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; Configuration
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2020-02-16 18:16:05 +01:00
|
|
|
(setq notmuch-saved-searches
|
|
|
|
'((:name "inbox" :query "tag:inbox" :key "i")
|
|
|
|
(:name "direct" :query "tag:direct and tag:inbox" :key "d")
|
|
|
|
(:name "action" :query "tag:action" :key "a")
|
|
|
|
(:name "review" :query "tag:review" :key "r")
|
|
|
|
(:name "waiting" :query "tag:waiting" :key "w")
|
|
|
|
(:name "broadcast" :query "tag:/broadcast\/.+/" :key "b")
|
|
|
|
(:name "systems" :query "tag:/systems\/.+/" :key "s")
|
|
|
|
(:name "sent" :query "tag:sent" :key "t")
|
|
|
|
(:name "drafts" :query "tag:draft" :key "D")))
|
2020-02-14 16:35:55 +01:00
|
|
|
|
2020-02-14 19:01:38 +01:00
|
|
|
;; Sort results from newest-to-oldest.
|
|
|
|
(setq notmuch-search-oldest-first nil)
|
|
|
|
|
2020-02-14 16:35:55 +01:00
|
|
|
;; 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))
|
2019-12-23 11:55:21 +01:00
|
|
|
|
|
|
|
(provide 'email)
|
|
|
|
;;; email.el ends here
|