From 8aaabedde4f1ee045c9fedbcf20fecb3d217531a Mon Sep 17 00:00:00 2001 From: gxlin Date: Fri, 16 Apr 2021 11:04:08 +0800 Subject: Add a lot of emacs config --- .emacs.d/modes/init-evil-mode.el | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .emacs.d/modes/init-evil-mode.el (limited to '.emacs.d/modes/init-evil-mode.el') 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) -- cgit v1.2.3