Gmane
From: Jameson Graef Rollins <jrollins@...>
Subject: [PATCH 3/4] emacs: modify the default show-mode key bindings for archiving/deleting
Newsgroups: gmane.mail.notmuch.general
Date: 2012-01-08 01:26:54 GMT (18 weeks, 3 days, 15 hours and 25 minutes ago)
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