feature/evil: add evil-collection (with +everywhere flag) #459
This commit is contained in:
parent
facd83a54b
commit
31611f913a
3 changed files with 14 additions and 7 deletions
|
@ -35,7 +35,7 @@
|
||||||
+defaults) ; default popup rules
|
+defaults) ; default popup rules
|
||||||
;debugger ; FIXME stepping through code, to help you add bugs
|
;debugger ; FIXME stepping through code, to help you add bugs
|
||||||
eval ; run code, run (also, repls)
|
eval ; run code, run (also, repls)
|
||||||
evil ; come to the dark side, we have cookies
|
(evil +everywhere); come to the dark side, we have cookies
|
||||||
file-templates ; auto-snippets for empty files
|
file-templates ; auto-snippets for empty files
|
||||||
(lookup ; helps you navigate your code and documentation
|
(lookup ; helps you navigate your code and documentation
|
||||||
+devdocs ; ...on devdocs.io online
|
+devdocs ; ...on devdocs.io online
|
||||||
|
|
|
@ -20,6 +20,18 @@
|
||||||
(autoload 'goto-last-change "goto-chg")
|
(autoload 'goto-last-change "goto-chg")
|
||||||
(autoload 'goto-last-change-reverse "goto-chg")
|
(autoload 'goto-last-change-reverse "goto-chg")
|
||||||
|
|
||||||
|
|
||||||
|
(def-package! evil-collection
|
||||||
|
:when (featurep! +everywhere)
|
||||||
|
:after evil
|
||||||
|
:preface
|
||||||
|
(setq evil-want-integration nil) ; must be set before evil is loaded
|
||||||
|
:config
|
||||||
|
(evil-collection-init)
|
||||||
|
;; don't interfere with leader key
|
||||||
|
(map! :after compile :map compilation-mode-map doom-leader-key nil))
|
||||||
|
|
||||||
|
|
||||||
(def-package! evil
|
(def-package! evil
|
||||||
:init
|
:init
|
||||||
(setq evil-want-C-u-scroll t
|
(setq evil-want-C-u-scroll t
|
||||||
|
@ -62,12 +74,6 @@
|
||||||
(setq +evil--default-cursor-color (face-background 'cursor)))
|
(setq +evil--default-cursor-color (face-background 'cursor)))
|
||||||
(add-hook 'doom-init-theme-hook #'+evil|update-cursor-color)
|
(add-hook 'doom-init-theme-hook #'+evil|update-cursor-color)
|
||||||
|
|
||||||
;; default modes
|
|
||||||
(dolist (mode '(tabulated-list-mode view-mode comint-mode term-mode calendar-mode Man-mode))
|
|
||||||
(evil-set-initial-state mode 'emacs))
|
|
||||||
(dolist (mode '(help-mode debugger-mode grep-mode))
|
|
||||||
(evil-set-initial-state mode 'normal))
|
|
||||||
|
|
||||||
|
|
||||||
;; --- keybind fixes ----------------------
|
;; --- keybind fixes ----------------------
|
||||||
(map! (:after wgrep
|
(map! (:after wgrep
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
(package! evil)
|
(package! evil)
|
||||||
(package! evil-args)
|
(package! evil-args)
|
||||||
(package! evil-commentary)
|
(package! evil-commentary)
|
||||||
|
(package! evil-collection)
|
||||||
(package! evil-easymotion)
|
(package! evil-easymotion)
|
||||||
(package! evil-embrace)
|
(package! evil-embrace)
|
||||||
(package! evil-escape)
|
(package! evil-escape)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue