From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 8C63F421197 for ; Tue, 17 Jan 2012 11:02:52 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled 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 56Qe9yO6ZN9Y for ; Tue, 17 Jan 2012 11:02:52 -0800 (PST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id F2106429E5F for ; Tue, 17 Jan 2012 11:02:51 -0800 (PST) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id 9CF392E50E70 for ; Tue, 17 Jan 2012 11:02:51 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from finestructure.net (cpe-76-174-137-84.socal.res.rr.com [76.174.137.84]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id E10A82E50DEA for ; Tue, 17 Jan 2012 11:02:49 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id 7FC9F52D; Tue, 17 Jan 2012 11:02:49 -0800 (PST) From: Jameson Graef Rollins To: Notmuch Mail Subject: [PATCH 3/3] emacs: add delete key bindings for search and show mode. Date: Tue, 17 Jan 2012 11:02:49 -0800 Message-Id: <1326826969-23545-3-git-send-email-jrollins@finestructure.net> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1326826969-23545-2-git-send-email-jrollins@finestructure.net> References: <87vcoaywyu.fsf@servo.finestructure.net> <1326826969-23545-1-git-send-email-jrollins@finestructure.net> <1326826969-23545-2-git-send-email-jrollins@finestructure.net> 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: Tue, 17 Jan 2012 19:02:52 -0000 This mimics the archiving keys ('a' and 'A'). --- emacs/notmuch-show.el | 2 ++ emacs/notmuch.el | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 141241d..f0259d5 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -945,6 +945,8 @@ thread id. If a prefix is given, crypto processing is toggled." (define-key map "-" 'notmuch-show-remove-tag) (define-key map "+" 'notmuch-show-add-tag) (define-key map "x" 'notmuch-show-archive-thread-then-exit) + (define-key map "d" 'notmuch-show-delete-message-then-next) + (define-key map "D" 'notmuch-show-delete-thread-then-next) (define-key map "a" 'notmuch-show-archive-message-then-next) (define-key map "A" 'notmuch-show-archive-thread-then-next) (define-key map "N" 'notmuch-show-next-message) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index 2acb31b..9f1b1ca 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -225,6 +225,7 @@ For a mouse binding, return nil." (define-key map "f" 'notmuch-search-filter) (define-key map [mouse-1] 'notmuch-search-show-thread) (define-key map "*" 'notmuch-search-operate-all) + (define-key map "d" 'notmuch-search-delete-thread) (define-key map "a" 'notmuch-search-archive-thread) (define-key map "-" 'notmuch-search-remove-tag) (define-key map "+" 'notmuch-search-add-tag) -- 1.7.7.3