about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el20
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))