summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-06-04 19:05:54 +0100
committerjao <jao@gnu.org>2022-06-04 19:05:54 +0100
commite6519af6c9665eb912384cdd7a88937e618cad41 (patch)
tree7f24d1e7e3da55d51dd82cb8e0ebeb278d4ca58a
parent0e91a9118192d9b64b2e6d7c37a0813e83d5385d (diff)
downloadelibs-e6519af6c9665eb912384cdd7a88937e618cad41.tar.gz
elibs-e6519af6c9665eb912384cdd7a88937e618cad41.tar.bz2
completion: orderless only in the minibuffer
-rw-r--r--completion.org29
-rw-r--r--notmuch.org4
2 files changed, 18 insertions, 15 deletions
diff --git a/completion.org b/completion.org
index fe1a382..3a4049a 100644
--- a/completion.org
+++ b/completion.org
@@ -82,18 +82,23 @@
(use-package orderless
:ensure t
:init
- (setq completion-styles '(substring partial-completion orderless))
:config
(orderless-define-completion-style orderless+initialism
(orderless-matching-styles '(orderless-initialism
orderless-prefixes
orderless-literal
orderless-regexp)))
- (setq completion-category-overrides
- '((file (styles partial-completion orderless))
- (command (styles orderless+initialism)))
- orderless-matching-styles
- '(orderless-literal orderless-regexp orderless-prefixes)))
+
+ (defun jao-orderless--set-locally ()
+ (setq-local completion-styles
+ '(substring partial-completion orderless)
+
+ completion-category-overrides
+ '((file (styles partial-completion orderless))
+ (command (styles orderless+initialism)))
+ orderless-matching-styles
+ '(orderless-literal orderless-regexp orderless-prefixes)))
+ (add-hook 'minibuffer-setup-hook #'jao-orderless--set-locally))
#+end_src
* marginalia
@@ -179,12 +184,12 @@
:config
- (setq completion-in-region-function
- (lambda (&rest args)
- (apply (if (and (not window-system) vertico-mode)
- #'consult-completion-in-region
- #'completion--in-region)
- args)))
+ ;; (setq completion-in-region-function
+ ;; (lambda (&rest args)
+ ;; (apply (if (and (not window-system) vertico-mode)
+ ;; #'consult-completion-in-region
+ ;; #'completion--in-region)
+ ;; args)))
(defun jao-vertico--display-candidates (lines)
(move-overlay vertico--candidates-ov (point-min) (point-min))
diff --git a/notmuch.org b/notmuch.org
index cdcb76f..b9edb29 100644
--- a/notmuch.org
+++ b/notmuch.org
@@ -492,9 +492,7 @@
notmuch-tree-thread-symbols
'((prefix . " ") (top . " ") (top-tee . " ")
(vertical . " ") (vertical-tee . " ") (bottom . " ")
- (arrow . ""))
- )
-
+ (arrow . "")))
:config
(jao-notmuch-adjust-tree-fonts