all repos — nixfiles @ d6ceae3a00cff6e823fd99b433f01660c5784ce6

System and user configuration, managed by nix and home-manager

emacs: tweak completion candidate matching
Alan Pearce alan@alanpearce.eu
Sun, 28 Apr 2024 18:02:08 +0200
commit

d6ceae3a00cff6e823fd99b433f01660c5784ce6

parent

638d2f56173b6ffd6faad6f575546d61b4412aef

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -249,7 +249,10 @@ completion-category-overrides '((file (styles basic partial-completion)))) 
 (use-package orderless
   :config (progn
-            (add-to-list 'completion-styles 'orderless)))
+            (add-to-list 'completion-styles 'orderless)
+            (setq orderless-matching-styles '(orderless-literal-prefix
+                                              orderless-prefixes
+                                              orderless-regexp))))
 
 (use-package consult
   :general ([remap isearch-forward] #'consult-line