From e540bf82a81ac8b8bd271615dd9d14123ff6847b Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Thu, 3 Aug 2023 13:23:37 +0200 Subject: [PATCH] emacs: Even more autocomplete tweaks --- modules/base/emacs/base-init.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/base/emacs/base-init.el b/modules/base/emacs/base-init.el index 890aac6b..bd7980b9 100644 --- a/modules/base/emacs/base-init.el +++ b/modules/base/emacs/base-init.el @@ -122,7 +122,7 @@ (corfu-cycle t "Enable cycling through completions") (corfu-auto t "Show completion preview by default") (corfu-auto-prefix 2 "Show completion after two characters") - (corfu-quit-no-match t "Quit completion without match, even if separator has been entered") + (corfu-separator ?# "I use # as a component separator in orderless") ;; Only confirm autocompletion with TAB :bind (:map corfu-map ("RET" . nil)) :config @@ -137,6 +137,7 @@ ;; Prescient in corfu (use-package corfu-prescient :after (corfu prescient) + :custom (corfu-prescient-enable-filtering nil "Orderless handles filtering") :config (corfu-prescient-mode 1) ) @@ -230,8 +231,9 @@ (use-package orderless :after (vertico) :custom + (orderless-component-separator "#" "Use # for component separation") (completion-styles '(orderless basic) "Use orderless for filtering") - (orderless-matching-styles '(orderless-initialism orderless-prefixes orderless-flex) "More matching styles for more flexible matching.") + (orderless-matching-styles '(orderless-literal orderless-initialism orderless-prefixes) "More matching styles for more flexible matching.") ) ;; Org