config/default: Fix evil-collection anti-hacks #604
This commit is contained in:
parent
0b48575c14
commit
4c73ac0111
1 changed files with 13 additions and 11 deletions
|
@ -772,14 +772,16 @@
|
||||||
;; Evil-collection fixes
|
;; Evil-collection fixes
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(when (featurep 'evil-collection)
|
|
||||||
(defun +config|deal-with-evil-collections-bs (_feature keymaps)
|
(defun +config|deal-with-evil-collections-bs (_feature keymaps)
|
||||||
"Unmap keys that conflict with Doom's defaults."
|
"Unmap keys that conflict with Doom's defaults."
|
||||||
(dolist (map keymaps)
|
(dolist (map keymaps)
|
||||||
(evil-define-key '(normal visual motion) map
|
(evil-delay `(and (boundp ',map) (keymapp ,map))
|
||||||
doom-leader-key nil
|
`(evil-define-key* '(normal visual motion) ,map
|
||||||
"C-j" nil "C-k" nil
|
(kbd doom-leader-key) nil
|
||||||
"gd" nil "gf" nil
|
(kbd "C-j") nil (kbd "C-k") nil
|
||||||
"K" nil
|
"gd" nil "gf" nil "K" nil
|
||||||
"]" nil "[" nil)))
|
"]" nil "[" nil)
|
||||||
(add-hook 'evil-collection-setup-hook #'+config|deal-with-evil-collections-bs))
|
'after-load-functions t nil
|
||||||
|
(format "+default-redefine-key-in-%s" map))))
|
||||||
|
|
||||||
|
(add-hook 'evil-collection-setup-hook #'+config|deal-with-evil-collections-bs)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue