Make avy use relative orders
This commit is contained in:
parent
ebd5f6f37c
commit
be967d56b3
10
config.org
10
config.org
|
@ -226,7 +226,17 @@ Set up our key bindings
|
||||||
'(:key "M-g f" :description "Goto line")
|
'(:key "M-g f" :description "Goto line")
|
||||||
'(:key "M-g w" :description "Goto word")
|
'(:key "M-g w" :description "Goto word")
|
||||||
'(:key "M-g e" :description "Goto word (0)")))
|
'(: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
|
#+end_src
|
||||||
*** Swiper
|
*** Swiper
|
||||||
Better isearch
|
Better isearch
|
||||||
|
|
Loading…
Reference in New Issue