From b58507bd37aedd0e93205a7877c936fcc57d65a0 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 31 Jul 2023 19:24:01 +0200 Subject: [PATCH] added avy after reading yet another wonderful article by karthinks --- lisp/init-avy.el | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lisp/init-avy.el diff --git a/lisp/init-avy.el b/lisp/init-avy.el new file mode 100644 index 0000000..ae1cc4d --- /dev/null +++ b/lisp/init-avy.el @@ -0,0 +1,24 @@ +;; see https://karthinks.com/software/avy-can-do-anything/ + +(use-package avy + ;; use C-x C-SPC to jump back! + :bind + (;; global: + ("C-j" . avy-goto-word-1) + + ;; mode specific: + :map swiper-map + ("C-j" . swiper-avy)) + + :config + + (setq avy-style 'at-full) + + ;; Home row only (the default). + (setq avy-keys '(?a ?s ?d ?f ?j ?k ?l)) + + (setq avy-background t)) + + +(provide 'init-avy) +;;; init-avy.el ends here