mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
added avy after reading yet another wonderful article by karthinks
This commit is contained in:
24
lisp/init-avy.el
Normal file
24
lisp/init-avy.el
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user