[PATCH 3/3] emacs: add delete key bindings for search and show mode.

Jameson Graef Rollins jrollins at finestructure.net
Tue Jan 17 11:02:49 PST 2012


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



More information about the notmuch mailing list