summaryrefslogtreecommitdiffhomepage
path: root/lib/net/jao-notmuch.el
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/jao-notmuch.el')
-rw-r--r--lib/net/jao-notmuch.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/net/jao-notmuch.el b/lib/net/jao-notmuch.el
index 4ca8573..f0659f6 100644
--- a/lib/net/jao-notmuch.el
+++ b/lib/net/jao-notmuch.el
@@ -211,6 +211,11 @@
(interactive)
(jao-notmuch-tree--tag-and-next '("-unread" "-new") nil t))
+(defun jao-notmuch-tree-flag (unmark)
+ (interactive "P")
+ (let ((tags (if unmark '("-flagged") '("-unread" "-new" "-deleted" "+flagged"))))
+ (jao-notmuch-tree--tag-and-next tags nil nil)))
+
(defun jao-notmuch-tree-spam (unmark)
(interactive "P")
(let ((tags (if unmark '("-spam") '("-unread" "-new" "+spam"))))