Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7981D431FBC for ; Wed, 20 Jan 2010 02:32:18 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.413 X-Spam-Level: X-Spam-Status: No, score=-0.413 tagged_above=-999 required=5 tests=[AWL=-0.228, BAYES_40=-0.185] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7UdMuvYBgMjU for ; Wed, 20 Jan 2010 02:32:17 -0800 (PST) Received: from homiemail-a24.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by olra.theworths.org (Postfix) with ESMTP id A7010431FAE for ; Wed, 20 Jan 2010 02:32:17 -0800 (PST) Received: from localhost.localdomain (mtec-hg-docking-2-dhcp-062.ethz.ch [82.130.121.62]) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTPA id 386EC2C806D; Wed, 20 Jan 2010 02:32:15 -0800 (PST) From: Sebastian Spaeth To: notmuch Date: Wed, 20 Jan 2010 11:32:10 +0100 Message-Id: <1263983530-5588-1-git-send-email-Sebastian@SSpaeth.de> X-Mailer: git-send-email 1.6.3.3 Subject: [notmuch] [PATCH] add notmuch-show-delete keybinding 'd' X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2010 10:32:18 -0000 It adds a tag 'delete' and removes the tags 'inbox' and 'unread'. Signed-off-by: Sebastian Spaeth --- notmuch.el | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/notmuch.el b/notmuch.el index 97914f2..ff930c9 100644 --- a/notmuch.el +++ b/notmuch.el @@ -63,6 +63,7 @@ (define-key map "m" 'message-mail) (define-key map "f" 'notmuch-show-forward-current) (define-key map "r" 'notmuch-show-reply) + (define-key map "d" 'notmuch-show-delete) (define-key map "|" 'notmuch-show-pipe-message) (define-key map "w" 'notmuch-show-save-attachments) (define-key map "V" 'notmuch-show-view-raw-message) @@ -369,6 +370,13 @@ buffer." (let ((message-id (notmuch-show-get-message-id))) (notmuch-reply message-id))) +(defun notmuch-show-delete () + "'delete' current mail and remove 'unread' 'inbox'" + (interactive) + (notmuch-show-add-tag "delete") + (notmuch-show-remove-tag "unread") + (notmuch-show-remove-tag "inbox")) + (defun notmuch-show-forward-current () "Forward the current message." (interactive) -- 1.6.3.3