From cfcdb4dabc0244085e6a5cb5d88dadfd865bc268 Mon Sep 17 00:00:00 2001 From: deb0ch Date: Mon, 6 Feb 2017 11:27:27 +0100 Subject: [PATCH] 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. --- layers/+distributions/spacemacs-bootstrap/packages.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layers/+distributions/spacemacs-bootstrap/packages.el b/layers/+distributions/spacemacs-bootstrap/packages.el index 560bfc4d0..352913781 100644 --- a/layers/+distributions/spacemacs-bootstrap/packages.el +++ b/layers/+distributions/spacemacs-bootstrap/packages.el @@ -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