From 41e657f70fd42c7b5a62303e707daa8040bcfa09 Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Tue, 13 Jul 2021 13:55:15 +0300 Subject: [PATCH] vertico: remove `:demand t` from `use-package`'s It didn't do anything for the `orderless` statement, and we can setup `embark-consult` correctly without it. --- modules/completion/vertico/config.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/completion/vertico/config.el b/modules/completion/vertico/config.el index d4212bbaa..5ac940278 100644 --- a/modules/completion/vertico/config.el +++ b/modules/completion/vertico/config.el @@ -16,7 +16,6 @@ [backspace] #'+vertico/backward-updir)) (use-package! orderless - :demand t :config (defun +vertico-orderless-dispatch (pattern _index _total) (cond @@ -154,9 +153,8 @@ (use-package! embark-consult :after (embark consult) - :demand t - :hook - (embark-collect-mode . consult-preview-at-point-mode)) + :config + (add-hook 'embark-collect-mode-hook #'consult-preview-at-point-mode)) (use-package! wgrep :commands wgrep-change-to-wgrep-mode