mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-01-03 15:21:41 +01:00
emacs: bind "s" to `notmuch-hello-search' in notmuch-hello buffer
`notmuch-hello-search' uses `notmuch-search' function but refreshes notmuch-hello buffer when the search buffer is closed.
This commit is contained in:
parent
bc267b70b0
commit
e6e10b82c9
1 changed files with 3 additions and 2 deletions
|
@ -172,7 +172,8 @@ International Bureau of Weights and Measures."
|
|||
(match-string 1 search)
|
||||
search))
|
||||
|
||||
(defun notmuch-hello-search (search)
|
||||
(defun notmuch-hello-search (&optional search)
|
||||
(interactive)
|
||||
(unless (null search)
|
||||
(setq search (notmuch-hello-trim search))
|
||||
(let ((history-delete-duplicates t))
|
||||
|
@ -343,7 +344,7 @@ should be. Returns a cons cell `(tags-per-line width)'."
|
|||
(define-key map "G" 'notmuch-hello-poll-and-update)
|
||||
(define-key map (kbd "<C-tab>") 'widget-backward)
|
||||
(define-key map "m" 'notmuch-mua-new-mail)
|
||||
(define-key map "s" 'notmuch-search)
|
||||
(define-key map "s" 'notmuch-hello-search)
|
||||
map)
|
||||
"Keymap for \"notmuch hello\" buffers.")
|
||||
(fset 'notmuch-hello-mode-map notmuch-hello-mode-map)
|
||||
|
|
Loading…
Reference in a new issue