diff options
author | Case Duckworth | 2021-04-12 21:18:58 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-12 21:18:58 -0500 |
commit | 114fd0988f2bd4747d9f499ddbb75e61bc280347 (patch) | |
tree | be870578aadaa8b1449c8ff53b0aa5446cf2c49d | |
parent | Add `acdw-org/delete-backward-char' and advise (diff) | |
download | emacs-114fd0988f2bd4747d9f499ddbb75e61bc280347.tar.gz emacs-114fd0988f2bd4747d9f499ddbb75e61bc280347.zip |
Back to `icomplete-mode'
While `vertico' is nice, it's honestly still a bit buggy, and slower than `icomplete-vertical'. So there we are.
-rw-r--r-- | init.el | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/init.el b/init.el index aca677d..ef508bc 100644 --- a/init.el +++ b/init.el | |||
@@ -159,6 +159,7 @@ | |||
159 | completion-category-defaults nil | 159 | completion-category-defaults nil |
160 | completion-category-overrides | 160 | completion-category-overrides |
161 | '((file (styles . (partial-completion))))) | 161 | '((file (styles . (partial-completion))))) |
162 | (icomplete-mode +1) | ||
162 | 163 | ||
163 | ;; Etc. | 164 | ;; Etc. |
164 | (:option inhibit-startup-screen t | 165 | (:option inhibit-startup-screen t |
@@ -557,15 +558,16 @@ call `zzz-to-char'." | |||
557 | 558 | ||
558 | (global-undo-fu-session-mode +1)) | 559 | (global-undo-fu-session-mode +1)) |
559 | 560 | ||
560 | (setup (:straight (vertico | 561 | (setup (:straight icomplete-vertical) |
561 | :host github | 562 | (:with-map icomplete-minibuffer-map |
562 | :repo "minad/vertico")) | 563 | (:bind "<down>" icomplete-forward-completions |
563 | 564 | "C-n" icomplete-forward-completions | |
564 | (advice-add #'completing-read-multiple :filter-args | 565 | "<up>" icomplete-backward-completions |
565 | (defun crm-indicator (args) | 566 | "C-p" icomplete-backward-completions |
566 | (cons (concat "[CRM] " (car args)) (cdr args)))) | 567 | "C-v" icomplete-vertical-toggle |
567 | 568 | "RET" icomplete-force-complete-and-exit | |
568 | (vertico-mode +1)) | 569 | "C-RET" minibuffer-complete-and-exit)) |
570 | (icomplete-vertical-mode +1)) | ||
569 | 571 | ||
570 | (setup (:straight orderless) | 572 | (setup (:straight orderless) |
571 | (:option (prepend completion-styles) 'orderless)) | 573 | (:option (prepend completion-styles) 'orderless)) |