summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-09-02 16:30:28 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2024-09-05 06:18:50 +0200
commitaf181ee17773bec9c0f27c94814434f6ebbea4d2 (patch)
tree855a01ddd19d229ffc53826871301282fe488366 /README.org
parentafaec1bb0513dd5cebfeb6f3891c69ec93f0c299 (diff)
Add `orderless-expand-substring` for literal substring expansionexpand-prefix
If the customization option `orderless-expand-substring` is set to t, `orderless-try-completion` first tries to treat the input as literal substring and tries to expand it. If literal substring expansion fails, Orderless falls back to its regular behavior, and checks if there exists a single unique match to expand to. The option `orderless-expand-substring` is effective in the default completion UI and Corfu when pressing TAB, but does not affect Vertico. It makes the transition to Orderless a little friendlier for users accustomed to the Emacs built-in `basic` and `substring` completion styles. As an alternative to `orderless-expand-substring` one could define an alternative completion style `tab` as follows. (add-to-list 'completion-styles-alist '(tab completion-substring-try-completion ignore "Completion style which provides only TAB completion.")) I've used this `tab` configuration style for a long time in my personal configuration, but the goal is to improve out of the box behavior of Orderless and related packages. The following two configurations are equivalent: ;; NEW: Use orderless-expand-substring (setq completion-styles '(orderless basic) orderless-expand-substring t) ;; OLD: Use the tab style from above. (setq completion-styles '(tab orderless basic) orderless-expand-substring nil)
Diffstat (limited to 'README.org')
0 files changed, 0 insertions, 0 deletions