Tweak avy bindings

This commit is contained in:
Nathan McCarty 2023-03-21 09:17:09 -04:00
parent 6572405db8
commit ba9f0fe63c
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 7 additions and 13 deletions

View File

@ -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