aboutsummaryrefslogtreecommitdiffstats
path: root/doom
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2022-02-20 16:48:08 +0000
committerYann Herklotz <git@yannherklotz.com>2022-02-20 16:48:08 +0000
commitdfb87b6803822924095cf5fc4bbfd9b24628bb13 (patch)
treee4d8f2c0dc27d55bf3ae6712a32161e78ce71ae1 /doom
parent7a11c4b71dd0631414156f7d9216f6a01be624fa (diff)
downloaddotfiles-dfb87b6803822924095cf5fc4bbfd9b24628bb13.tar.gz
dotfiles-dfb87b6803822924095cf5fc4bbfd9b24628bb13.zip
Add doom email config
Diffstat (limited to 'doom')
-rw-r--r--doom/config.el19
1 files changed, 14 insertions, 5 deletions
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"))