diff --git a/init.el b/init.el index 578ec69..4655466 100755 --- a/init.el +++ b/init.el @@ -99,8 +99,23 @@ ;; Vertico (completion helper) (use-package vertico :config + (keymap-set vertico-map "M-j" #'vertico-next) + (keymap-set vertico-map "M-k" #'vertico-previous) + (keymap-set vertico-map "M-`" #'vertico-exit) (vertico-mode)) +(use-package vertico-indexed + :after vertico + :init + (setq vertico-indexed-start 1) + :config + (dotimes (i 9) + (keymap-set vertico-map (format "M-%d" (+ i 1)) + `(lambda () (interactive) + (let ((current-prefix-arg (+ ,i 1))) + (call-interactively #'vertico-exit))))) + (vertico-indexed-mode)) + ;; Editorconfig support (use-package editorconfig :config