From 74b100cd547aee5c3e0b56f2597e59f580b25c27 Mon Sep 17 00:00:00 2001 From: Edmund Miller Date: Sun, 21 Feb 2021 14:40:26 -0600 Subject: [PATCH] fix(selectrum): Apply changes from minad's review selectrum-fix-minibuffer-height has been deprecated. The selectrum-refine-candidates-function should not be set. Only selectrum-highlight-candidates-function is necessary in order to get highlighting, when orderless-skip-highlighting is set. Co-authored-by: minad --- modules/completion/selectrum/config.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/completion/selectrum/config.el b/modules/completion/selectrum/config.el index 3ed5133a1..94494d764 100644 --- a/modules/completion/selectrum/config.el +++ b/modules/completion/selectrum/config.el @@ -5,8 +5,7 @@ :init (setq selectrum-display-action nil selectrum-num-candidates-displayed 15 - selectrum-extend-current-candidate-highlight t - selectrum-fix-minibuffer-height t) + selectrum-extend-current-candidate-highlight t) (unless (featurep! +orderless) (setq completion-styles '(substring partial-completion))) :config @@ -35,8 +34,7 @@ :config (setq completion-styles '(orderless)) (setq orderless-skip-highlighting (lambda () selectrum-active-p)) - (setq selectrum-highlight-candidates-function #'orderless-highlight-matches - selectrum-refine-candidates-function #'orderless-filter)) + (setq selectrum-highlight-candidates-function #'orderless-highlight-matches)) (use-package! consult :defer t