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
1 changed files with 4 additions and 3 deletions

View File

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