summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-notmuch.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-11-08 18:26:20 +0000
committerjao <jao@gnu.org>2025-11-08 18:26:20 +0000
commitea763e39f7c491f78297135ddf1c3de0e8c2d49b (patch)
tree71fefce76e48551c80e5f7920a8f4fdb08994a0e /custom/jao-custom-notmuch.el
parentb77d8c219889e7ce66a198828efe47cebc570ed9 (diff)
downloadelibs-ea763e39f7c491f78297135ddf1c3de0e8c2d49b.tar.gz
elibs-ea763e39f7c491f78297135ddf1c3de0e8c2d49b.tar.bz2
notmuch: more tweaks to saved searches
Diffstat (limited to 'custom/jao-custom-notmuch.el')
-rw-r--r--custom/jao-custom-notmuch.el31
1 files changed, 17 insertions, 14 deletions
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index 8b985d7..b0e7043 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -138,12 +138,15 @@
(jao-notmuch-def-searches hacking
`(,(jao-notmuch--q "hacking" "h")
,(jao-notmuch--q "prog" "p")
- ,(jao-notmuch--q "lists" "lr" "rust")
- ,(jao-notmuch--q "lists" "lx" "xmobar")
- ,(jao-notmuch--q "lists" "lg" "geiser")
- ,(jao-notmuch--q "lists" "ln" "notmuch")
- ,(jao-notmuch--q "lists" "ls" "scheme")
- ,(jao-notmuch--q "lists" "lh" "haskell")))
+ ,@(mapcar 'jao-notmuch--q-feed
+ '(("lc" "clojure")
+ ("le" "emacs")
+ ("lg" "geiser")
+ ("lh" "haskell")
+ ("ln" "notmuch")
+ ("lr" "rust")
+ ("ls" "scheme")
+ ("lx" "xmobar")))))
(jao-notmuch-def-searches sci
(mapcar 'jao-notmuch--q-feed
@@ -159,22 +162,22 @@
t)
(jao-notmuch-def-searches nil
- `(,(jao-notmuch--q "jao" "F" "flagged" '("tag:flagged" "tag:jao"))))
+ `(,(jao-notmuch--q "flagged" "F" nil '("tag:flagged" "tag:jao"))))
(jao-notmuch-def-searches today
- `(,(jao-notmuch--q "new" "N" nil '("tag:new" "not tag:draft"))
- ,(jao-notmuch--q "jao" "D" "drafts" '("tag:draft"))
- ,(jao-notmuch--q "jao" "S" "sent" '("date:1d.." "tag:sent"))
- ,(jao-notmuch--q "jao" "T" "today"
+ `(,(jao-notmuch--q "new" "N" nil (list jao-notmuch--new "not tag:draft"))
+ ,(jao-notmuch--q "drafts" "D" nil '("tag:draft"))
+ ,(jao-notmuch--q "sent" "S" nil '("date:1d.." "tag:sent"))
+ ,(jao-notmuch--q "today" "T" nil
'("tag:jao" "date:24h.."
"not tag:\"/(sent|feeds|spam|local)/\""))))
(jao-notmuch-def-searches trove
- '((:query "tag:trove" :name "jao/trove" :search-type tree)
- (:query "tag:hacking" :name "jao/hacking" :search-type tree)
+ '((:query "tag:trove" :name "trove" :search-type tree)
+ (:query "tag:hacking" :name "hacking" :search-type tree)
(:query "not tag:trove and not tag:hacking" :name "untroved"
:search-type tree)
- (:query "tag:sent" :name "jao/sent" :search-type tree)))
+ (:query "tag:sent" :name "sent" :search-type tree)))
(jao-notmuch-def-searches nil
'((:query "*" :name "messages" :search-type tree)))