emacs: Even more autocomplete tweaks

This commit is contained in:
Charlotte Van Petegem 2023-08-03 13:23:37 +02:00
parent 910509fde6
commit e540bf82a8
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -122,7 +122,7 @@
(corfu-cycle t "Enable cycling through completions") (corfu-cycle t "Enable cycling through completions")
(corfu-auto t "Show completion preview by default") (corfu-auto t "Show completion preview by default")
(corfu-auto-prefix 2 "Show completion after two characters") (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 ;; Only confirm autocompletion with TAB
:bind (:map corfu-map ("RET" . nil)) :bind (:map corfu-map ("RET" . nil))
:config :config
@ -137,6 +137,7 @@
;; Prescient in corfu ;; Prescient in corfu
(use-package corfu-prescient (use-package corfu-prescient
:after (corfu prescient) :after (corfu prescient)
:custom (corfu-prescient-enable-filtering nil "Orderless handles filtering")
:config (corfu-prescient-mode 1) :config (corfu-prescient-mode 1)
) )
@ -230,8 +231,9 @@
(use-package orderless (use-package orderless
:after (vertico) :after (vertico)
:custom :custom
(orderless-component-separator "#" "Use # for component separation")
(completion-styles '(orderless basic) "Use orderless for filtering") (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 ;; Org