aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/modes/init-evil-mode.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/modes/init-evil-mode.el')
-rw-r--r--.emacs.d/modes/init-evil-mode.el29
1 files changed, 29 insertions, 0 deletions
diff --git a/.emacs.d/modes/init-evil-mode.el b/.emacs.d/modes/init-evil-mode.el
new file mode 100644
index 0000000..ee7983a
--- /dev/null
+++ b/.emacs.d/modes/init-evil-mode.el
@@ -0,0 +1,29 @@
+(use-package evil
+ :ensure t
+ :hook (evil-org-mode . (lambda () (setq evil-want-C-i-jump nil)))
+ :init
+ (setq evil-want-integration t
+ evil-want-keybinding nil)
+ :config
+ (evil-set-leader 'normal ",")
+ (setq evil-want-C-u-scroll t)
+ (setq evil-want-fine-undo t)
+ (evil-set-undo-system 'undo-tree)
+ (evil-mode 1))
+
+(use-package evil-collection
+ :after evil
+ :ensure t
+; :custom (evil-collection-setup-minibuffer t)
+ :config
+ (evil-collection-init))
+
+(use-package evil-escape
+ :after evil
+ :config
+ (evil-escape-mode)
+ (setq-default
+ evil-escape-key-sequence "jk"
+ evil-escape-unordered-key-sequence t))
+
+(provide 'init-evil-mode)