diff options
Diffstat (limited to '.emacs.d/lisp/init-evil.el')
-rw-r--r-- | .emacs.d/lisp/init-evil.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/.emacs.d/lisp/init-evil.el b/.emacs.d/lisp/init-evil.el index d950f73..c41296b 100644 --- a/.emacs.d/lisp/init-evil.el +++ b/.emacs.d/lisp/init-evil.el @@ -1,11 +1,12 @@ -(use-package evil :ensure t :defer t) +(when (gx/maybe-require-package 'evil) + (add-hook 'after-init-hook (lambda () (evil-mode 1)))) -(add-hook 'after-init-hook (lambda () (evil-mode 1))) (setq evil-want-integration t evil-want-C-u-scroll t evil-wannt-fine-undo t evil-want-keybinding nil evil-disable-insert-state-bindings t) + (with-eval-after-load 'evil (evil-set-leader 'normal ",") (evil-set-undo-system 'undo-tree) @@ -16,13 +17,13 @@ (kbd "gk") 'evil-previous-visual-line)) ;; evil-collection -(use-package evil-collection :ensure t :defer t) -(with-eval-after-load 'evil - (evil-collection-init)) +(when (gx/maybe-require-package 'evil-collection) + (with-eval-after-load 'evil + (evil-collection-init))) ;; evil-easymotion -(use-package evil-easymotion :ensure t :defer t) -(with-eval-after-load 'evil - (evilem-default-keybindings "SPC")) +(when (gx/maybe-require-package 'evil-easymotion) + (with-eval-after-load 'evil + (evilem-default-keybindings "SPC"))) (provide 'init-evil) |