]> git.donarmstrong.com Git - lib.git/commitdiff
enable vertico-directory
authorDon Armstrong <don@donarmstrong.com>
Sun, 1 Jan 2023 19:06:08 +0000 (11:06 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 1 Jan 2023 19:06:08 +0000 (11:06 -0800)
emacs_el/configuration/don-configuration.org

index 5cf822e0d37573b15d97c60d55dc3020442da342..803aea916dc22f6516c4d7a9d7c0b7855878ba4a 100644 (file)
@@ -793,6 +793,11 @@ Attempts to automatically identify the right indentation for a file
 
   ;; Optionally enable cycling for `vertico-next' and `vertico-previous'.
   ;; (setq vertico-cycle t)
+  :config
+  (define-key vertico-map "\r" #'vertico-directory-enter)
+  (define-key vertico-map "\d" #'vertico-directory-delete-char)
+  (define-key vertico-map "\M-\d" #'vertico-directory-delete-word)
+  (add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy
   )
 
 ;; Persist history over Emacs restarts. Vertico sorts by history position.