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
This commit is contained in:
Itai Y. Efrat 2021-08-07 02:17:02 +03:00
parent 6b5c34a1db
commit 4613c74d8b

View file

@ -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