diff --git a/config.org b/config.org index 26ac5a8..794f479 100644 --- a/config.org +++ b/config.org @@ -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