From ba9f0fe63c688f3455657adacf2ea2072f2b5d3c Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Tue, 21 Mar 2023 09:17:09 -0400 Subject: [PATCH] Tweak avy bindings --- config.org | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/config.org b/config.org index 1c6025d..b3b3618 100644 --- a/config.org +++ b/config.org @@ -223,19 +223,13 @@ More modern ace-jump-mode Set up our key bindings #+begin_src emacs-lisp -(after! avy - (define-key! - "M-g c" 'avy-goto-char - "M-g x" 'avy-goto-char-2 - "M-g f" 'avy-goto-line - "M-g w" 'avy-goto-word-1 - "M-g e" 'avy-goto-word-0) - (cheatsheet-add-group 'Avy - '(:key "M-g c" :description "Goto Char") - '(:key "M-g x" :description "Goto Char (2)") - '(:key "M-g f" :description "Goto line") - '(:key "M-g w" :description "Goto word") - '(:key "M-g e" :description "Goto word (0)"))) +(map! :leader + (:prefix ("j" . "jump") + "c" #'avy-goto-char + "x" #'avy-goto-char-2 + "f" #'avy-goto-line + "w" #'avy-goto-word-1 + "e" #'avy-goto-word-0)) #+end_src Configure avy to use relative-to-point paths for every command we have bound