Simplify completion styles by with overrides for certain categories

The default completion style is now to use orderless by default, but
certain categories can benefit from additional completions (e.g., file
and partial-completion).

It's quite hard to determine the appropriate completion categories,
though.  Does Org have a dedicated one?
This commit is contained in:
Daniel - 2024-03-10 08:43:16 +01:00
parent ea0e94c312
commit b3a1689741
Signed by: dbo
GPG Key ID: 784AA8DF0CCDF625
1 changed files with 7 additions and 2 deletions

View File

@ -2091,8 +2091,13 @@ Note that this workaround is incomplete, as explained in this comment."
extended-command-suggest-shorter t
completions-detailed t
completion-cycle-threshold 10
completion-styles '(orderless basic substring initials partial-completion)
completion-category-defaults nil)
completion-styles '(orderless basic)
completion-category-defaults nil
;; Via https://protesilaos.com/emacs/dotemacs, with additional changes
completion-category-overrides '((file (styles . (basic partial-completion orderless)))
(bookmark (styles . (basic substring orderless)))
(imenu (styles . (basic substring orderless)))
(kill-ring (styles . (emacs22 orderless)))))
(use-package helm
:ensure t