[Emacs] Better bépo support with Evil

This commit is contained in:
Lucien Cartier-Tilet 2021-12-17 16:42:14 +01:00
parent 294411d73b
commit ac04636e54
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -893,6 +893,22 @@ can still feel some influence from my Spacemacs years here.
:after evil
:straight (:build t)
:config
;; bépo conversion
(defun my/bépo-rotate-evil-collection (_mode mode-keymaps &rest _rest)
(evil-collection-translate-key 'normal mode-keymaps
;; bépo ctsr is qwerty hjkl
"c" "h"
"t" "j"
"s" "k"
"r" "l"
;; add back ctsr
"h" "c"
"j" "t"
"k" "s"
"l" "r"))
(add-hook 'evil-collection-setup-hook #'my/bépo-rotate-evil-collection)
(evil-collection-init))
#+end_src