refactor(vertico): rename which key indicator

rename +vertico/embark-which-key-indicator to
+vertico-embark-which-key-indicator, since it's not interactive
This commit is contained in:
Itai Y. Efrat 2021-08-10 17:52:00 +03:00
parent c0fd2c37cd
commit 0a69ca957a
2 changed files with 2 additions and 2 deletions

View file

@ -233,7 +233,7 @@ If INITIAL is non-nil, use as initial input."
(forward-line (string-to-number line))))) (forward-line (string-to-number line)))))
;;;###autoload ;;;###autoload
(defun +vertico/embark-which-key-indicator () (defun +vertico-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
current target followed by an ellipsis if there are further current target followed by an ellipsis if there are further

View file

@ -149,7 +149,7 @@ overrides `completion-styles' during company completion sessions.")
:desc "Actions" "a" #'embark-act)) ; to be moved to :config default if accepted :desc "Actions" "a" #'embark-act)) ; to be moved to :config default if accepted
:config :config
(set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil) (set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil)
(cl-nsubstitute #'+vertico/embark-which-key-indicator #'embark-mixed-indicator embark-indicators) (cl-nsubstitute #'+vertico-embark-which-key-indicator #'embark-mixed-indicator embark-indicators)
(add-to-list 'embark-indicators #'+vertico-embark-vertico-indicator) (add-to-list 'embark-indicators #'+vertico-embark-vertico-indicator)
;; add the package! target finder before the file target finder, ;; add the package! target finder before the file target finder,
;; so we don't get a false positive match. ;; so we don't get a false positive match.