From 29f5addf40f68c2b9dc14ee5a71bfd060c8179d7 Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Tue, 18 Jun 2024 20:28:18 +0000 Subject: Deal with shadowed file names more nicely --- emacs/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index 9f05288..7c3317b 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -52,8 +52,8 @@ (bind-key (kbd "") #'vertico-directory-delete-char 'vertico-map) (bind-key (kbd "") #'vertico-directory-delete-word 'vertico-map) -;; Tidy shadowed file names -;; :hook (rfn-eshadow-update-overlay . vertico-directory-tidy) +;; If i type ~/ etc in a find-file prompt, get rid of the preceding directory names for a cleaner look. +(add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy) (setopt read-buffer-completion-ignore-case t) (setopt read-file-name-completion-ignore-case t) -- cgit 1.4.1-2-gfad0