feature/evil: fix vars being set too late #401

Certain evil variables, like evil-respect-visual-line-mode, need to be
set before evil is loaded for it to take effect.
This commit is contained in:
Henrik Lissner 2018-02-03 22:38:07 -05:00
parent c5837440d6
commit 3a6388bb68
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -21,7 +21,7 @@
(autoload 'goto-last-change-reverse "goto-chg") (autoload 'goto-last-change-reverse "goto-chg")
(def-package! evil (def-package! evil
:config :init
(setq evil-want-C-u-scroll t (setq evil-want-C-u-scroll t
evil-want-visual-char-semi-exclusive t evil-want-visual-char-semi-exclusive t
evil-want-Y-yank-to-eol t evil-want-Y-yank-to-eol t
@ -45,6 +45,7 @@
evil-insert-state-cursor 'bar evil-insert-state-cursor 'bar
evil-visual-state-cursor 'hollow) evil-visual-state-cursor 'hollow)
:config
(add-hook 'doom-init-hook #'evil-mode) (add-hook 'doom-init-hook #'evil-mode)
(evil-select-search-module 'evil-search-module 'evil-search) (evil-select-search-module 'evil-search-module 'evil-search)