nixos/home/emacs/modules/custom-email-config.el

25 lines
1.4 KiB
EmacsLisp

(require 'notmuch)
(require 'notmuch-indicator)
(notmuch-indicator-mode +1)
(setq mail-user-agent 'notmuch-user-agent
notmuch-search-oldest-first nil
notmuch-show-logo nil
notmuch-hello-thousands-separator ","
notmuch-archive-tags '("-inbox" "+archive")
notmuch-fcc-dirs '((".*@xenia.me.uk" . "Proton/Sent")
(".*@proton.me" . "Proton/Sent")
(".*@litherlandsmith.slmail.me" . "Proton/Sent")
(".*@icloud.com" . "iCloud/Sent")
(".*@ukaea.uk" . "Outlook/Sent")
(".*@jet.uk" . "Outlook/Sent"))
notmuch-saved-searches '((:name "inbox" :query "tag:inbox" :key [105] :sort-order nil :search-type tree)
(:name "unread" :query "tag:unread" :key [117] :sort-order nil :search-type tree)
(:name "flagged" :query "tag:flagged" :key [102] :sort-order nil :search-type tree)
(:name "sent" :query "tag:sent" :key [116] :sort-order nil :search-type tree)
(:name "drafts" :query "tag:draft" :key [100] :sort-order nil :search-type tree)
(:name "all mail" :query "*" :key [97] :sort-order nil :search-type tree))
notmuch-indicator-refresh-count 60
notmuch-indicator-args '((:terms "tag:unread and tag:inbox" :label "󰮒 ")))
(provide 'custom-email-config)