From 1f259852317ed36fde63b7ca4441da4647ddb004 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 3 Apr 2023 09:27:28 -0400 Subject: [PATCH] Configure vertico-directory --- emacs/.emacs.d/config/init-completion.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-completion.el b/emacs/.emacs.d/config/init-completion.el index db18754..826980e 100644 --- a/emacs/.emacs.d/config/init-completion.el +++ b/emacs/.emacs.d/config/init-completion.el @@ -4,7 +4,8 @@ ;; First Vertico, which provides the core incremental minibuffer completion engine (use-package vertico - :straight (:files (:defaults "extensions/vertico-repeat.el")) + :straight (:files (:defaults "extensions/vertico-repeat.el" + "extensions/vertico-directory.el")) :init (vertico-mode)) @@ -16,6 +17,16 @@ :general (leader-map "r" #'vertico-repeat)) +(use-package vertico-directory + :straight (:type built-in) + :after vertico + :general + (vertico-map "RET" #'vertico-directory-enter + "DEL" #'vertico-directory-delete-char + "M-DEL" #'vertico-directory-delete-word) + ;; Tidy shadowed file names + :hook (rfn-eshadow-update-overlay . vertico-directory-tidy)) + ;; Save history in order to persist sort order across emacs sessions (use-package savehist :straight (:type built-in)