From 4613c74d8b2ba376e5174aa2a4f2d93971dc489c Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Sat, 7 Aug 2021 02:17:02 +0300 Subject: [PATCH] fix(vertico): prefix-help-command - move the setq to the embark use-package where it belongs - also set which-key-use-C-h-commands to nil, otherwise sometimes which-key will override the prefix-help-command setting --- modules/completion/vertico/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/completion/vertico/config.el b/modules/completion/vertico/config.el index 12adecf68..e212510ac 100644 --- a/modules/completion/vertico/config.el +++ b/modules/completion/vertico/config.el @@ -82,7 +82,6 @@ overrides `completion-styles' during company completion sessions.") [remap persp-switch-to-buffer] #'+vertico/switch-workspace-buffer) (advice-add #'completing-read-multiple :override #'consult-completing-read-multiple) (advice-add #'multi-occur :override #'consult-multi-occur) - (setq prefix-help-command #'embark-prefix-help-command) :config (setq consult-project-root-function #'doom-project-root consult-narrow-key "<" @@ -134,6 +133,8 @@ overrides `completion-styles' during company completion sessions.") (use-package! embark :defer t :init + (setq which-key-use-C-h-commands nil + prefix-help-command #'embark-prefix-help-command) (map! [remap describe-bindings] #'embark-bindings "C-;" #'embark-act ; to be moved to :config default if accepted (:map minibuffer-local-map