1
0
Fork 0

[oni-notmuch] Swap deleted and @me faces so deleted takes precedence

When I delete a message I don't want it to still be highlighted as a message for
me. The fact that I marked it for deletion is more important than that it's
addressed to me directly.
This commit is contained in:
Tom Willemse 2022-11-13 17:04:51 -08:00
parent 0401e08e65
commit 04be0ce1fe

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2022.1102.115002 ;; Version: 2022.1113.170616
;; Package-Requires: (notmuch ol-notmuch) ;; Package-Requires: (notmuch ol-notmuch)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -37,10 +37,10 @@ in which to mark thread."
(notmuch-search-archive-thread reverse begin end) (notmuch-search-archive-thread reverse begin end)
(notmuch-search-tag (notmuch-tag-change-list '("deleted") reverse) begin end)) (notmuch-search-tag (notmuch-tag-change-list '("deleted") reverse) begin end))
(add-to-list 'notmuch-search-line-faces
'("deleted" . (:foreground "#3f4242")))
(add-to-list 'notmuch-search-line-faces (add-to-list 'notmuch-search-line-faces
'("@me" . (:foreground "#90ca82"))) '("@me" . (:foreground "#90ca82")))
(add-to-list 'notmuch-search-line-faces
'("deleted" . (:foreground "#3f4242")))
(define-key notmuch-search-mode-map (kbd "d") #'oni-notmuch-search-delete-thread) (define-key notmuch-search-mode-map (kbd "d") #'oni-notmuch-search-delete-thread)