From 3afb712452dbc674cbc6713651e2a6e4dc449461 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Tue, 16 Feb 2021 19:28:13 -0600 Subject: [PATCH] fix(selectrum): Move prescient out of nested use-package --- modules/completion/selectrum/config.el | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/completion/selectrum/config.el b/modules/completion/selectrum/config.el index fef3173ea..a8c5b8608 100644 --- a/modules/completion/selectrum/config.el +++ b/modules/completion/selectrum/config.el @@ -13,15 +13,6 @@ selectrum-refine-candidates-function #'orderless-filter selectrum-highlight-candidates-function #'orderless-highlight-matches)) - (when (featurep! +prescient) - (use-package! selectrum-prescient - :after selectrum - :hook ((selectrum-mode . selectrum-prescient-mode) - (selectrum-mode . prescient-persist-mode)) - :config - (setq selectrum-preprocess-candidates-function #'selectrum-prescient--preprocess) - (add-hook 'selectrum-candidate-selected-hook #'selectrum-prescient--remember) - (add-hook 'selectrum-candidate-inserted-hook #'selectrum-prescient--remember))) :config (defadvice! +selectrum-refresh-on-cycle (&rest _) @@ -39,6 +30,15 @@ :geni "C-S-k" #'selectrum-previous-page :geni "C-s-k" #'selectrum-goto-beginning))) +(use-package! selectrum-prescient + :when (featurep! +prescient) + :hook (selectrum-mode . selectrum-prescient-mode) + :hook (selectrum-mode . prescient-persist-mode) + :config + (setq selectrum-preprocess-candidates-function #'selectrum-prescient--preprocess) + (add-hook 'selectrum-candidate-selected-hook #'selectrum-prescient--remember) + (add-hook 'selectrum-candidate-inserted-hook #'selectrum-prescient--remember)) + (use-package! orderless :when (featurep! +orderless) :defer t