mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
emacs: tree: bind S to run current query in search mode
This commit is contained in:
parent
391d9f9420
commit
f9d2ccf67b
1 changed files with 8 additions and 0 deletions
|
@ -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))
|
||||
|
||||
(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)
|
||||
|
@ -402,6 +404,12 @@ Does NOT change the database."
|
|||
(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)))
|
||||
|
|
Loading…
Reference in a new issue