From df650b768096072a64531215d6205c1cb3bc7aff Mon Sep 17 00:00:00 2001 From: Tim McCarthy Date: Sat, 27 Apr 2024 22:44:52 -0700 Subject: [PATCH] Customize Avy and isearch behavior --- thoom-emacs/modules/thoom-editing.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/thoom-emacs/modules/thoom-editing.el b/thoom-emacs/modules/thoom-editing.el index 60b1052..9b9d96f 100644 --- a/thoom-emacs/modules/thoom-editing.el +++ b/thoom-emacs/modules/thoom-editing.el @@ -19,6 +19,7 @@ ;; C/M-v move to next/previous match not currently visible ;; M- move to first/last match in buffer (setq isearch-allow-motion t) +(setq isearch-wrap-pause nil) (use-package avy :ensure t @@ -26,10 +27,14 @@ (("C-j" . avy-goto-char-timer) ([remap goto-line] . avy-goto-line) :map org-mode-map - ("C-j" . avy-goto-char-timer)) + ("C-j" . avy-goto-char-timer) + :map isearch-mode-map + ("C-j" . avy-isearch)) :init - (avy-setup-default)) + (setq avy-timeout-seconds 0.25) + (setq avy-single-candidate-jump nil)) + (use-package avy-zap :ensure t