Advertisement
Rid1-fz-06

evil.el

Dec 1st, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.64 KB | Source Code | 0 0
  1. (use-package key-chord)
  2.  
  3. (use-package evil
  4.   :ensure t
  5.  
  6.   :init
  7.   (setq evil-want-integration t)
  8.   (setq evil-want-keybinding nil)
  9.   (setq evil-want-C-u-scroll t)
  10.   (setq evil-want-C-i-jump nil)
  11.   (require 'evil-collection)
  12.  
  13.   :config
  14.   (evil-mode 1)
  15.   (setq key-chord-two-keys-delay 0.2)
  16.   (key-chord-define evil-insert-state-map "jk" 'evil-normal-state) ;; `jk' to quit insert
  17.   (key-chord-mode 1)
  18.   ;; Set initial vim-mode for major modes
  19.   (evil-set-initial-state 'messages-buffer-mode 'normal)
  20.   (evil-set-initial-state 'dashboard-mode 'normal))
  21.  
  22. (use-package evil-collection
  23.   :after evil
  24.  
  25.   :init
  26.   (evil-collection-init))
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement