Fix evil search in info mode

This commit is contained in:
Jay Kamat 2018-05-09 10:15:49 -07:00 committed by Pierre Neidhardt
parent 212a80e53e
commit a055728ec5
3 changed files with 9 additions and 2 deletions

View File

@ -116,6 +116,7 @@ The return value is the yanked text."
"gc" 'emms-browse-by-composer
"gp" 'emms-browse-by-performer
;; TODO find a way to integrate this with evil-collection-evil-search
"/" 'emms-isearch-buffer ; This shows hidden items during search.
"n" 'isearch-repeat-forward
"N" 'isearch-repeat-backward

View File

@ -31,6 +31,8 @@
;;; Code:
(require 'evil-search)
(defvar evil-collection-evil-search-enabled (eq evil-search-module 'evil-search))
(defvar evil-collection-evil-search-forward
'(menu-item "" nil :filter (lambda (&optional _)
(if (eq evil-search-module 'evil-search)

View File

@ -71,8 +71,12 @@
;; TODO: Should search with "n"/"N" cover the full manual like "C-s"/"C-r" does?
;; TODO: Directions?
"n" 'isearch-repeat-forward
"N" 'isearch-repeat-backward
"n" (if evil-collection-evil-search-enabled
evil-collection-evil-search-next
'isearch-repeat-forward)
"N" (if evil-collection-evil-search-enabled
evil-collection-evil-search-previous
'isearch-repeat-backward)
;; goto
"gd" 'Info-goto-node ; TODO: "gd" does not match the rationale of "go to definition". Change?