diff options
author | Case Duckworth | 2021-08-11 22:06:57 -0500 |
---|---|---|
committer | Case Duckworth | 2021-08-11 22:06:57 -0500 |
commit | 79eb4dce2bc2b9a19f7811036b3c4c3b64cd4336 (patch) | |
tree | e5d9f4bb69f066f9860515fbc2448fe2a0991cc9 | |
parent | Add lots of orderless stuff (diff) | |
download | emacs-79eb4dce2bc2b9a19f7811036b3c4c3b64cd4336.tar.gz emacs-79eb4dce2bc2b9a19f7811036b3c4c3b64cd4336.zip |
Prefix current candidate in Vertico with ":"
-rw-r--r-- | init.el | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/init.el b/init.el index b848593..31fade2 100644 --- a/init.el +++ b/init.el | |||
@@ -1461,16 +1461,15 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
1461 | (:also-load vertico-mouse) | 1461 | (:also-load vertico-mouse) |
1462 | (vertico-mouse-mode +1) | 1462 | (vertico-mouse-mode +1) |
1463 | 1463 | ||
1464 | ;; Workarounds! | 1464 | ;; Prefix the current candidate with ": ". From Vertico wiki. |
1465 | ;; (with-eval-after-load 'org | 1465 | (advice-add #'vertico--format-candidate :around |
1466 | ;; (when (version< org-version "9.5") | 1466 | (lambda (orig cand prefix suffix index _start) |
1467 | ;; (defun disable-selection () | 1467 | (setq cand (funcall orig cand prefix suffix index _start)) |
1468 | ;; (when (eq minibuffer-completion-table #'org-tags-completion-function) | 1468 | (concat |
1469 | ;; (setq-local vertico-map minibuffer-local-completion-map | 1469 | (if (= vertico--index index) |
1470 | ;; completion-cycle-threshold nil | 1470 | (propertize ": " 'face 'vertico-current) |
1471 | ;; completion-styles '(basic)))) | 1471 | " ") |
1472 | ;; (advice-add #'vertico--setup :before #'disable-selection))) | 1472 | cand)))) |
1473 | ) | ||
1474 | 1473 | ||
1475 | (setup (:straight vuiet) | 1474 | (setup (:straight vuiet) |
1476 | (:needs "youtube-dl" | 1475 | (:needs "youtube-dl" |