diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-02-20 16:48:08 +0000 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-02-20 16:48:08 +0000 |
commit | dfb87b6803822924095cf5fc4bbfd9b24628bb13 (patch) | |
tree | e4d8f2c0dc27d55bf3ae6712a32161e78ce71ae1 | |
parent | 7a11c4b71dd0631414156f7d9216f6a01be624fa (diff) | |
download | dotfiles-dfb87b6803822924095cf5fc4bbfd9b24628bb13.tar.gz dotfiles-dfb87b6803822924095cf5fc4bbfd9b24628bb13.zip |
Add doom email config
-rw-r--r-- | afew/config | 5 | ||||
-rw-r--r-- | doom/config.el | 19 |
2 files changed, 19 insertions, 5 deletions
diff --git a/afew/config b/afew/config index 9bf3e31..3c77713 100644 --- a/afew/config +++ b/afew/config @@ -24,6 +24,11 @@ header = To pattern = (?P<name>[a-zA-Z.]*)@ymhg\.org tags = +{name} +[HeaderMatchingFilter.2] +header = To +pattern = <langproc-.*@noreply\.github\.com> +tags = -inbox;-new;+git;+langproc + [Filter.1] message = Remove temporary Anacron messages. query = from:"anacron" or from:"cron daemon" 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")) |