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 Borchmann 2024-03-10 08:43:16 +01:00
parent ea0e94c312
commit b3a1689741
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -2091,8 +2091,13 @@ Note that this workaround is incomplete, as explained in this comment."
extended-command-suggest-shorter t extended-command-suggest-shorter t
completions-detailed t completions-detailed t
completion-cycle-threshold 10 completion-cycle-threshold 10
completion-styles '(orderless basic substring initials partial-completion) completion-styles '(orderless basic)
completion-category-defaults nil) 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 (use-package helm
:ensure t :ensure t