ivy: Use ivy for auto-highlight-symbol search

This commit is contained in:
justbur 2016-02-01 13:24:58 -05:00 committed by syl20bnr
parent 5f6834ab23
commit 3f7501fe92
1 changed files with 10 additions and 1 deletions

View File

@ -10,7 +10,8 @@
;;; License: GPLv3
(setq spacemacs-ivy-packages
'(counsel
'(auto-highlight-symbol
counsel
flx
;; hack since ivy is part for swiper but I like to
;; treat it as a stand-alone package
@ -291,6 +292,14 @@ Helm hack."
;; TODO: Commands to port
(spacemacs//ivy-command-not-implemented-yet "jI"))))
(defun spacemacs-ivy/post-init-auto-highlight-symbol ()
(setq spacemacs-symbol-highlight-transient-state-remove-bindings
'("/" "b" "f"))
(setq spacemacs-symbol-highlight-transient-state-add-bindings
'(("/" spacemacs/search-project-auto-region-or-symbol :exit t)
("b" spacemacs/swiper-all-region-or-symbol :exit t)
("f" spacemacs/search-auto-region-or-symbol :exit t))))
(defun spacemacs-ivy/init-flx ())
(defun spacemacs-ivy/init-ivy ()