From ac04636e54df9d22758a92822316106911e6fd18 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Fri, 17 Dec 2021 16:42:14 +0100 Subject: [PATCH] =?UTF-8?q?[Emacs]=20Better=20b=C3=A9po=20support=20with?= =?UTF-8?q?=20Evil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- org/config/emacs.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/org/config/emacs.org b/org/config/emacs.org index 902338e..5ef8159 100644 --- a/org/config/emacs.org +++ b/org/config/emacs.org @@ -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