projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
391d9f9
)
emacs: tree: bind S to run current query in search mode
author
Mark Walters
<markwalters1009@gmail.com>
Wed, 14 Oct 2015 08:38:23 +0000
(09:38 +0100)
committer
David Bremner
<david@tethera.net>
Wed, 21 Oct 2015 12:14:07 +0000
(09:14 -0300)
emacs/notmuch-tree.el
patch
|
blob
|
history
diff --git
a/emacs/notmuch-tree.el
b/emacs/notmuch-tree.el
index 5695b684029c9fad127d93be65773d9783befaae..384cb76bcf3c086f6f727112334e0ad4bea1eb84 100644
(file)
--- a/
emacs/notmuch-tree.el
+++ b/
emacs/notmuch-tree.el
@@
-240,6
+240,8
@@
FUNC."
;; Override because we want to close message pane first.
(define-key map [remap notmuch-mua-new-mail] (notmuch-tree-close-message-pane-and #'notmuch-mua-new-mail))
;; Override because we want to close message pane first.
(define-key map [remap notmuch-mua-new-mail] (notmuch-tree-close-message-pane-and #'notmuch-mua-new-mail))
+ (define-key map "S" 'notmuch-search-from-tree-current-query)
+
;; these use notmuch-show functions directly
(define-key map "|" 'notmuch-show-pipe-message)
(define-key map "w" 'notmuch-show-save-attachments)
;; these use notmuch-show functions directly
(define-key map "|" 'notmuch-show-pipe-message)
(define-key map "w" 'notmuch-show-save-attachments)
@@
-402,6
+404,12
@@
Does NOT change the database."
(notmuch-tree-close-message-window)
(notmuch-tree query)))
(notmuch-tree-close-message-window)
(notmuch-tree query)))
+(defun notmuch-search-from-tree-current-query ()
+ "Call notmuch search with the current query"
+ (interactive)
+ (notmuch-tree-close-message-window)
+ (notmuch-search (notmuch-tree-get-query)))
+
(defun notmuch-tree-message-window-kill-hook ()
"Close the message pane when exiting the show buffer."
(let ((buffer (current-buffer)))
(defun notmuch-tree-message-window-kill-hook ()
"Close the message pane when exiting the show buffer."
(let ((buffer (current-buffer)))