From 85338cc8f5ca3e87a435cdbe3cbdd1c05e67f565 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 11 Mar 2024 17:22:51 +0100 Subject: [PATCH] Use basic completion before orderless MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using orderless by default get's in the way of “usual” code completion and shell completion, where prefix completion is the expected behavior (for me). So let's try to use basic completion first, and try to rely on orderless completion to kick in as soon as spaces are involved (which should not happen for shell and code completion). The completion colors should also help to see whether we are still using basic completion or orderless completion. Let's try this for now. --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 74eae8e..5df64eb 100644 --- a/init.el +++ b/init.el @@ -2087,7 +2087,7 @@ Note that this workaround is incomplete, as explained in this comment." extended-command-suggest-shorter t completions-detailed t completion-cycle-threshold nil - completion-styles '(orderless basic) + completion-styles '(basic orderless) completion-category-defaults nil ;; Via https://protesilaos.com/emacs/dotemacs, with additional changes completion-category-overrides '((file (styles . (basic partial-completion orderless)))