Add embark action for avy
This commit is contained in:
@@ -34,6 +34,17 @@
|
|||||||
("C-j" . nil))
|
("C-j" . nil))
|
||||||
|
|
||||||
:init
|
:init
|
||||||
|
(defun avy-action-embark (pt)
|
||||||
|
(unwind-protect
|
||||||
|
(save-excursion
|
||||||
|
(goto-char pt)
|
||||||
|
(embark-act))
|
||||||
|
(select-window
|
||||||
|
(cdr (ring-ref avy-ring 0))))
|
||||||
|
t)
|
||||||
|
|
||||||
|
(setf (alist-get ?\; avy-dispatch-alist) 'avy-action-embark)
|
||||||
|
|
||||||
(setq avy-timeout-seconds 0.25)
|
(setq avy-timeout-seconds 0.25)
|
||||||
;; Always show candidates even when there's just one, to give an
|
;; Always show candidates even when there's just one, to give an
|
||||||
;; opportunity to select an avy action
|
;; opportunity to select an avy action
|
||||||
|
|||||||
Reference in New Issue
Block a user