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 A99D840F23A for ; Sat, 7 Jan 2012 17:27:01 -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 Ij0fuLx5TSFP for ; Sat, 7 Jan 2012 17:27:01 -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 26ED940AD77 for ; Sat, 7 Jan 2012 17:27:01 -0800 (PST) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id BE0E62E50E05 for ; Sat, 7 Jan 2012 17:27:00 -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 0D34F2E50EF5 for ; Sat, 7 Jan 2012 17:26:58 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id 7E2941165; Sat, 7 Jan 2012 17:26:58 -0800 (PST) From: Jameson Graef Rollins To: Notmuch Mail Subject: [PATCH 3/4] emacs: modify the default show-mode key bindings for archiving/deleting Date: Sat, 7 Jan 2012 17:26:54 -0800 Message-Id: <1325986015-22510-4-git-send-email-jrollins@finestructure.net> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1325986015-22510-3-git-send-email-jrollins@finestructure.net> References: <1325975294-646-4-git-send-email-jrollins@finestructure.net> <1325986015-22510-1-git-send-email-jrollins@finestructure.net> <1325986015-22510-2-git-send-email-jrollins@finestructure.net> <1325986015-22510-3-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: Sun, 08 Jan 2012 01:27:01 -0000 This changes the default key bindings for the 'a' and 'd' keys in notmuch-show mode. Instead of archiving/deleting the entire thread, they now just archive/delete the current message, and then advance to the next open message. 'A' and 'D' are rebound to the previous archive/delete-thread functions. --- emacs/notmuch-show.el | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index e7bb958..4c2b507 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -943,8 +943,10 @@ 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 "a" 'notmuch-show-archive-thread) - (define-key map "d" 'notmuch-show-delete-thread) + (define-key map "a" 'notmuch-show-archive-message) + (define-key map "A" 'notmuch-show-archive-thread) + (define-key map "d" 'notmuch-show-delete-message) + (define-key map "D" 'notmuch-show-delete-thread) (define-key map "N" 'notmuch-show-next-message) (define-key map "P" 'notmuch-show-previous-message) (define-key map "n" 'notmuch-show-next-open-message) -- 1.7.7.3