2026-09-14 20:49:31 +02:00
|
|
|
;; -*- lexical-binding: nil; -*-
|
2023-07-31 19:24:01 +02:00
|
|
|
;; 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))
|
|
|
|
|
|
2023-11-01 13:14:09 +01:00
|
|
|
(setq avy-background t)
|
|
|
|
|
|
|
|
|
|
;; (global-set-key (kbd "C-j") 'avy-goto-word-1)
|
|
|
|
|
)
|
2023-07-31 19:24:01 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
(provide 'init-avy)
|
|
|
|
|
;;; init-avy.el ends here
|