Set up Avy
This commit is contained in:
parent
78dc31a1d9
commit
2960fc5ad1
@ -7,6 +7,24 @@
|
|||||||
:config
|
:config
|
||||||
(ctrlf-mode 1))
|
(ctrlf-mode 1))
|
||||||
|
|
||||||
|
(use-package avy
|
||||||
|
:config
|
||||||
|
(with-eval-after-load 'embark
|
||||||
|
(defun avy-action-embark (point)
|
||||||
|
(unwind-protect
|
||||||
|
(save-excursion
|
||||||
|
(goto-char point)
|
||||||
|
(embark-act))
|
||||||
|
(select-window
|
||||||
|
(cdr (ring-ref avy-ring 0))))
|
||||||
|
t)
|
||||||
|
(setf (alist-get ?. avy-dispatch-alist)
|
||||||
|
#'avy-action-embark)
|
||||||
|
(add-to-list 'avy-dispatch-alist '(?\C-. . avy-action-embark)))
|
||||||
|
:bind
|
||||||
|
("M-f" . avy-goto-char-timer))
|
||||||
|
|
||||||
|
|
||||||
;; "pair" management, where pairs are parentheses, braces, etc.
|
;; "pair" management, where pairs are parentheses, braces, etc.
|
||||||
(use-package smartparens
|
(use-package smartparens
|
||||||
:init
|
:init
|
||||||
|
Loading…
Reference in New Issue
Block a user