diff options
author | gxlin <[email protected]> | 2021-04-16 11:04:08 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-04-18 09:35:49 +0800 |
commit | 8aaabedde4f1ee045c9fedbcf20fecb3d217531a (patch) | |
tree | ca246e2a5aac5375a93c5549d0da76d74de12863 /.emacs.d/modes/init-evil-mode.el | |
parent | c81b6905aa178349c8633ac623ae2cd1d91f88a9 (diff) | |
download | dotfiles-8aaabedde4f1ee045c9fedbcf20fecb3d217531a.tar.gz dotfiles-8aaabedde4f1ee045c9fedbcf20fecb3d217531a.tar.bz2 dotfiles-8aaabedde4f1ee045c9fedbcf20fecb3d217531a.zip |
Add a lot of emacs config
Diffstat (limited to '.emacs.d/modes/init-evil-mode.el')
-rw-r--r-- | .emacs.d/modes/init-evil-mode.el | 29 |
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) |