Make avy use relative orders

This commit is contained in:
Nathan McCarty 2023-01-28 18:27:08 -05:00
parent ebd5f6f37c
commit be967d56b3
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 10 additions and 0 deletions

View File

@ -226,7 +226,17 @@ Set up our key bindings
'(:key "M-g f" :description "Goto line")
'(:key "M-g w" :description "Goto word")
'(:key "M-g e" :description "Goto word (0)")))
#+end_src
Configure avy to use relative-to-point paths for every command we have bound
#+begin_src emacs-lisp
(after! avy
(setq avy-orders-alist
'((avy-goto-char . avy-order-closest)
(avy-goto-word-0 . avy-order-closest)
(avy-goto-word-1 . avy-order-closest)
(avy-goto-char-2 . avy-order-closest)
(avy-goto-line . avy-order-closest))))
#+end_src
*** Swiper
Better isearch