fix evil-search enabling in evil-state (c7e47de)

There was an error on startup saying that hybrid-mode-use-evil-search-module was
void as a variable.
This commit is contained in:
deb0ch 2017-02-06 11:27:27 +01:00 committed by syl20bnr
parent b53a8957a1
commit cfcdb4dabc

View file

@ -41,9 +41,10 @@
:override-mode-name spacemacs-leader-override-mode)) :override-mode-name spacemacs-leader-override-mode))
(defun spacemacs-bootstrap/init-evil () (defun spacemacs-bootstrap/init-evil ()
;; ensure that the search module is set at startup (with-eval-after-load 'hybrid-mode
(spacemacs/set-evil-search-module dotspacemacs-editing-style) ;; ensure that the search module is set at startup
(add-hook 'spacemacs-editing-style-hook 'spacemacs/set-evil-search-module) (spacemacs/set-evil-search-module dotspacemacs-editing-style)
(add-hook 'spacemacs-editing-style-hook 'spacemacs/set-evil-search-module))
;; evil-mode is mandatory for Spacemacs to work properly ;; evil-mode is mandatory for Spacemacs to work properly
;; evil must be require explicitly, the autoload seems to not ;; evil must be require explicitly, the autoload seems to not