From 90f014dcdb579ba98a351b716c15f2eb1df6501a Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sun, 23 Jun 2024 15:28:22 +0000 Subject: Update loading vertico --- config.org | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 216d3b6..59e16a8 100644 --- a/config.org +++ b/config.org @@ -117,7 +117,7 @@ Vertico is a package for a nice minibuffer completion experience. It displays a (package-ensure '(vertico :url "https://github.com/minad/vertico.git" :lisp-dir "extensions/")) - (require 'vertico) + (package-activate 'vertico) (setopt vertico-mode t) #+end_src @@ -149,9 +149,10 @@ And of course, i want to be able to interact with vertico with the mouse. When completing a filename, i want to be able to easily delete directories in one fell swoop, instead of character by character or word by word. Usually C- would be fine, but if directories have a hyphen or space in their name, i have to press multiple times, which is almost never desirable. #+begin_src elisp -(bind-key (kbd "RET") #'vertico-directory-enter 'vertico-map) -(bind-key (kbd "") #'vertico-directory-delete-char 'vertico-map) -(bind-key (kbd "") #'vertico-directory-delete-word 'vertico-map) + (with-eval-after-load 'vertico + (bind-key (kbd "RET") #'vertico-directory-enter 'vertico-map) + (bind-key (kbd "") #'vertico-directory-delete-char 'vertico-map) + (bind-key (kbd "") #'vertico-directory-delete-word 'vertico-map)) #+end_src If i type ~/ etc in a find-file prompt, get rid of the preceding directory names for a cleaner look. -- cgit 1.4.1-2-gfad0