From dfb87b6803822924095cf5fc4bbfd9b24628bb13 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 20 Feb 2022 16:48:08 +0000 Subject: Add doom email config --- doom/config.el | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'doom') diff --git a/doom/config.el b/doom/config.el index c565756..f33672f 100644 --- a/doom/config.el +++ b/doom/config.el @@ -707,7 +707,7 @@ (calendar-last-day-of-month month year))) (= day last-day-of-month))) -(use-package! calc +(use-package! calc-forms :config (add-to-list 'math-tzone-names '("AOE" 12 0))) @@ -746,6 +746,8 @@ https://yannherklotz.com") (notmuch-show-tag (list "-deleted")) (notmuch-show-tag (list "+deleted" "-unread") beg end))) + (setq notmuch-archive-tags '("-inbox" "-unread" "+archive")) + (map! :map notmuch-show-mode-map "d" #'ymhg/notmuch-show-delete-mail) @@ -754,17 +756,20 @@ https://yannherklotz.com") "d" #'ymhg/notmuch-search-delete-mail) (setq notmuch-saved-searches - '((:name "inbox" :query "tag:inbox not tag:deleted" :key "n") + '((:name "inbox" :query "date:last_month..this_month and tag:inbox not tag:deleted" :key "n") (:name "flagged" :query "tag:flagged" :key "f") (:name "sent" :query "tag:sent" :key "s") (:name "drafts" :query "tag:draft" :key "d") - (:name "mailbox" :query "(tag:mailbox and tag:inbox) not tag:deleted not tag:sent" :key "m") - (:name "imperial" :query "(tag:imperial and tag:inbox) not tag:deleted not tag:sent" :key "i"))) + (:name "mailbox" :query "date:last_month..this_month and (tag:mailbox and tag:inbox) and not tag:deleted and not tag:sent" :key "m") + (:name "imperial" :query "date:last_month..this_month and (tag:imperial and tag:inbox) and not tag:deleted and not tag:sent" :key "i") + (:name "all recent" :query "date:last_month..this_month" :key "r"))) (setq notmuch-fcc-dirs '(("yann@yannherklotz.com" . "mailbox/Sent -inbox +sent -unread +mailbox -new") ("git@ymhg.org" . "mailbox/Sent -inbox +sent -unread +mailbox -new") - ("yann.herklotz15@imperial.ac.uk" . "\"imperial/Sent Items\" -inbox +sent -unread +imperial -new")))) + ("yann.herklotz15@imperial.ac.uk" . "\"imperial/Sent Items\" -inbox +sent -unread +imperial -new"))) + + (setq +notmuch-home-function (lambda () (notmuch-search "tag:inbox")))) (after! shr (setq shr-use-fonts nil)) @@ -952,3 +957,7 @@ https://yannherklotz.com") (other-frame 2)) (define-key y-map (kbd "o") #'ymhg/reset-coq-windows) + +(use-package! browse-url + :config + (setq browse-url-chrome-program "brave")) -- cgit