Ensure that identifier-at-point is the first target found by embark

This commit is contained in:
Jeremy Dormitzer 2024-04-02 15:05:18 -06:00
parent 30c22902b3
commit 0124fa4071

View File

@ -62,6 +62,9 @@
;; Embark adds context actions to completion candidates (and other things!) ;; Embark adds context actions to completion candidates (and other things!)
(use-package embark (use-package embark
:config :config
;; Make sure identifier at point is the first target
(setq embark-target-finders (remove 'embark-target-identifier-at-point embark-target-finders))
(add-to-list 'embark-target-finders 'embark-target-identifier-at-point)
(defun embark-which-key-indicator () (defun embark-which-key-indicator ()
"An embark indicator that displays keymaps using which-key. "An embark indicator that displays keymaps using which-key.
The which-key help message will show the type and value of the The which-key help message will show the type and value of the