[PATCH 3/3] Provide a key binding for toggling processing order.

servilio at gmail.com servilio at gmail.com
Sat Jun 26 16:32:03 PDT 2010


Because maybe for this search, or new batch of message you would like
to do it a bit different, but then go back to your normal workflow.
All without magical M-x incantations.

---
 emacs/notmuch.el |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 404e77d..5ab3df7 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -207,6 +207,7 @@ For a mouse binding, return nil."
     (define-key map "m" 'notmuch-mua-mail)
     (define-key map "s" 'notmuch-search)
     (define-key map "o" 'notmuch-search-toggle-order)
+    (define-key map "O" 'notmuch-search-toggle-processing-order)
     (define-key map "=" 'notmuch-search-refresh-view)
     (define-key map "G" 'notmuch-search-poll-and-refresh-view)
     (define-key map "t" 'notmuch-search-filter-by-tag)
@@ -863,6 +864,11 @@ search."
   (set 'notmuch-search-oldest-first (not notmuch-search-oldest-first))
   (notmuch-search-refresh-view))

+(defun notmuch-search-toggle-processing-order ()
+  "Toggle the current mail processing order."
+  (interactive)
+  (set 'notmuch-process-newer-next (not notmuch-process-newer-next)))
+
 (defun notmuch-search-filter (query)
   "Filter the current search results based on an additional query string.

-- 
1.7.1


More information about the notmuch mailing list