summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2025-09-09 22:17:12 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2025-09-09 22:19:54 +0200
commit211ccb906b9444f7210106909b37c402d582731a (patch)
tree44a323f11110acaa07050d07fc37fd7108e0679a
parentdc36a7beb23e47310bcb5da0f6509bdb9c5c7ebb (diff)
README: Suggest completion-pcm-leading-wildcard on Emacs 31
This way partial-completion will behave like substring instead of like basic prefix completion. If combined with orderless, the behavior will be less staggering for files, where the style may change during completion from partial-completion to orderless.
-rw-r--r--README.org6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.org b/README.org
index f67d190..0e20c1b 100644
--- a/README.org
+++ b/README.org
@@ -64,7 +64,8 @@ If you use ELPA or MELPA, the easiest way to install =orderless= is via
:ensure t
:custom
(completion-styles '(orderless basic))
- (completion-category-overrides '((file (styles partial-completion)))))
+ (completion-category-overrides '((file (styles partial-completion))))
+ (completion-pcm-leading-wildcard t)) ;; Emacs 31: partial-completion behaves like substring
#+end_src
Alternatively, put =orderless.el= somewhere on your =load-path=, and use
@@ -73,7 +74,8 @@ the following configuration:
#+begin_src emacs-lisp
(require 'orderless)
(setq completion-styles '(orderless basic)
- completion-category-overrides '((file (styles partial-completion))))
+ completion-category-overrides '((file (styles partial-completion)))
+ completion-pcm-leading-wildcard t) ;; Emacs 31: partial-completion behaves like substring
#+end_src
The =basic= completion style is specified as fallback in addition to