From 6b8b97fe8d7a7f8ee473100a21cb6a4238294bf2 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 9 Mar 2024 20:06:48 +0100 Subject: [PATCH] Prefer orderless completion style over others MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The reason is that while filtering Org headlines, sometimes one of the other completion styles matches, hiding other possible matches that would have been found by the `orderless` style. This can happen when spaces are included in Org headlines (which is usually the case) and those spaces match the search pattern. In this case, the position of point is also relevant, which is not something I want. It would be better to know which completion category is use in this case and override the completion style for this only, but so far I haven't found it. Continue looking … --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 0852f52..3b811ef 100644 --- a/init.el +++ b/init.el @@ -2091,7 +2091,7 @@ Note that this workaround is incomplete, as explained in this comment." extended-command-suggest-shorter t completions-detailed t completion-cycle-threshold 10 - completion-styles '(basic substring initials partial-completion orderless) + completion-styles '(orderless basic substring initials partial-completion) completion-category-defaults nil) (use-package helm