diff options
author | Thanos Apollo <[email protected]> | 2024-10-08 18:24:17 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-10-08 18:24:17 +0300 |
commit | faca3bf78b95a2017b3ad143b94bf3a1c07a52af (patch) | |
tree | cdb4101fa27828b3eea3ecaf19af5fa199a45b2c | |
parent | 2aae51af5fb3b743071b5dbb977c2ebd3bd41650 (diff) |
emacs: notmuch: Rewrite config.
-rw-r--r-- | .config/emacs/init.el | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 689bd9f..826727e 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -1069,29 +1069,29 @@ By default, returns all jabber related buffers format." :map notmuch-search-mode-map ("u" . notmuch-refresh-all-buffers)) :hook ((notmuch-hello-mode . (lambda () (display-line-numbers-mode 0))) - (notmuch-search-mode . (lambda () (display-line-numbers-mode 0) (emojify-mode)))) - :config - (setf notmuch-archive-tags '("-inbox" "-unread" "+archived") - notmuch-show-all-tags-list t - notmuch-hello-sections '(notmuch-hello-insert-header notmuch-hello-insert-saved-searches notmuch-hello-insert-alltags)) - - (setq notmuch-search-oldest-first nil) - - (setf notmuch-tag-formats - '(("unread" (propertize tag 'face 'notmuch-tag-unread)) - ("emacs-pm" (propertize tag 'face '((t :foreground "#ff9580")))))) - - (setf notmuch-identities '("[email protected]" "[email protected]" - "[email protected]")) - - (setf notmuch-saved-searches - `((:name "Inbox" :query "tag:inbox" :sort-order newest-first :key ,(kbd "i")) - (:name "Unread" :query "tag:unread" :sort-order newest-first :key ,(kbd "u")) - (:name "Today's message" :query "tag:inbox date:today" :sort-order newest-first - :key ,(kbd "t")) - (:name "sent" :query "tag:sent" :sort-order newest-first :key ,(kbd "s")) - (:name "drafts" :query "tag:draft" :sort-order newest-first :key ,(kbd "d")) - (:name "all mail" :query "*" :sort-order newest-first :key ,(kbd "a"))))) + (notmuch-search-mode . (lambda () (display-line-numbers-mode 0) (emojify-mode))))) + +(setf notmuch-archive-tags '("-inbox" "-unread" "+archived") + notmuch-show-all-tags-list t + notmuch-hello-sections '(notmuch-hello-insert-header notmuch-hello-insert-saved-searches notmuch-hello-insert-alltags)) + +(setq notmuch-search-oldest-first nil) + +(setf notmuch-tag-formats + '(("unread" (propertize tag 'face 'notmuch-tag-unread)) + ("emacs-pm" (propertize tag 'face '((t :foreground "#ff9580")))))) + +(setf notmuch-identities '("[email protected]" "[email protected]" + "[email protected]")) + +(setf notmuch-saved-searches + `((:name "Inbox" :query "tag:inbox" :sort-order newest-first :key ,(kbd "i")) + (:name "Unread" :query "tag:unread" :sort-order newest-first :key ,(kbd "u")) + (:name "Today's message" :query "tag:inbox date:today" :sort-order newest-first + :key ,(kbd "t")) + (:name "sent" :query "tag:sent" :sort-order newest-first :key ,(kbd "s")) + (:name "drafts" :query "tag:draft" :sort-order newest-first :key ,(kbd "d")) + (:name "all mail" :query "*" :sort-order newest-first :key ,(kbd "a")))) ;; Update notmuch on startup ;; (thanos/notmuch-update) |