From 0124fa4071d641d3f206e99ba98f2d1341e8eff2 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Tue, 2 Apr 2024 15:05:18 -0600 Subject: [PATCH] Ensure that identifier-at-point is the first target found by embark --- emacs/.emacs.d/config/init-completion.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emacs/.emacs.d/config/init-completion.el b/emacs/.emacs.d/config/init-completion.el index 5257674..77d1eb7 100644 --- a/emacs/.emacs.d/config/init-completion.el +++ b/emacs/.emacs.d/config/init-completion.el @@ -62,6 +62,9 @@ ;; Embark adds context actions to completion candidates (and other things!) (use-package embark :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 () "An embark indicator that displays keymaps using which-key. The which-key help message will show the type and value of the