From 6775265e255e3c3e946bde31b580cad3943bfc1f Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Tue, 1 Oct 2024 23:38:51 -0700 Subject: [PATCH] Avy isearch action --- thoom-emacs/init.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/thoom-emacs/init.el b/thoom-emacs/init.el index 9da0187..6591618 100644 --- a/thoom-emacs/init.el +++ b/thoom-emacs/init.el @@ -213,8 +213,15 @@ (cdr (ring-ref avy-ring 0)))) t) + (defun avy-action-isearch (pt) + (unwind-protect + (goto-char pt) + (isearch-forward-thing-at-point)) + t) + (setf (alist-get ?\; avy-dispatch-alist) 'avy-action-embark) (setf (alist-get ?\: avy-dispatch-alist) 'avy-action-embark-dwim) + (setf (alist-get ?i avy-dispatch-alist) 'avy-action-isearch) (setq avy-timeout-seconds 0.25) ;; Always show candidates even when there's just one, to give an