notmuch: Bind stash map prefixes to "ys"

This commit is contained in:
Pierre Neidhardt 2019-03-19 12:49:59 +01:00
parent c6ea346a7f
commit 7e69645643
1 changed files with 24 additions and 6 deletions

View File

@ -213,16 +213,34 @@
"cr" 'notmuch-search-reply-to-thread-sender
"cR" 'notmuch-search-reply-to-thread
"t" 'notmuch-search-filter-by-tag
"y" 'notmuch-search-stash-map
[mouse-1] 'notmuch-search-show-thread
"-" 'notmuch-search-remove-tag
"+" 'notmuch-search-add-tag
(kbd "RET") 'notmuch-search-show-thread))
(evil-collection-define-key 'normal 'notmuch-search-stash-map
"i" 'notmuch-search-stash-thread-id
"q" 'notmuch-stash-query
"g?" 'notmuch-subkeymap-help))
(evil-collection-define-key 'operator 'notmuch-search-mode-map
;; Like `eww'.
"s"
`(menu-item
""
nil
:filter (lambda (&optional _)
(when (memq evil-this-operator
evil-collection-yank-operators)
(setq evil-inhibit-operator t)
#'notmuch-search-stash-map))))
(evil-collection-define-key 'operator 'notmuch-show-mode-map
;; Like `eww'.
"s"
`(menu-item
""
nil
:filter (lambda (&optional _)
(when (memq evil-this-operator
evil-collection-yank-operators)
(setq evil-inhibit-operator t)
#'notmuch-show-stash-map)))))
(provide 'evil-collection-notmuch)
;;; evil-collection-notmuch.el ends here