From 07d219a3003e4e1de7716e04b85a88a730b909ee Mon Sep 17 00:00:00 2001 From: Max Nickel Date: Wed, 23 Oct 2019 22:58:06 -0400 Subject: [PATCH] add support for deleting messages in notmuch-show --- modules/email/notmuch/autoload.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/email/notmuch/autoload.el b/modules/email/notmuch/autoload.el index ab7ae5610..5a4917c6f 100644 --- a/modules/email/notmuch/autoload.el +++ b/modules/email/notmuch/autoload.el @@ -56,6 +56,13 @@ (notmuch-tree-add-tag (list "+trash" "-inbox" "-unread")) (notmuch-tree-next-message)) +;;;###autoload +(defun +notmuch/show-delete () + "Mark email for deletion in notmuch-show" + (interactive) + (notmuch-show-add-tag (list "+trash" "-inbox" "-unread")) + (notmuch-show-next-thread-show)) + ;;;###autoload (defun +notmuch/search-spam () (interactive)