From be967d56b32ba4797bf5e02f037d8beb6faf7a20 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sat, 28 Jan 2023 18:27:08 -0500 Subject: [PATCH] Make avy use relative orders --- config.org | 10 ++++++++++ 1 file changed, 10 insertions(+) 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