summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--completion.org9
1 files changed, 5 insertions, 4 deletions
diff --git a/completion.org b/completion.org
index 10042f4..f437d9d 100644
--- a/completion.org
+++ b/completion.org
@@ -37,8 +37,8 @@
(defun jao-completion--sort-by-alpha-length (elems)
(sort elems (lambda (c1 c2)
- (and (string-version-lessp c1 c2)
- (< (length c1) (length c2))))))
+ (or (string-version-lessp c1 c2)
+ (< (length c1) (length c2))))))
(defun jao-completion--sort-by-history (elems)
(let ((hist (and (not (eq minibuffer-history-variable t))
@@ -53,7 +53,7 @@
(use-package orderless
:ensure t
:init
- (setq completion-styles '(orderless))
+ (setq completion-styles '(substring partial-completion orderless))
:config
(orderless-define-completion-style orderless+initialism
(orderless-matching-styles '(orderless-initialism
@@ -61,7 +61,7 @@
orderless-literal
orderless-regexp)))
(setq completion-category-overrides
- '((file (styles partial-completion))
+ '((file (styles partial-completion orderless))
(command (styles orderless+initialism)))
orderless-matching-styles
'(orderless-literal orderless-regexp orderless-prefixes)))
@@ -116,6 +116,7 @@
Info-index
Info-menu
jao-buffer-same-mode
+ jao-eww-reopen
vc-retrieve-tag)))
(mct-minibuffer-mode 1)