From e3699823133532dc67243feb703d45e416f85806 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 12 Mar 2024 09:18:46 -0400 Subject: [PATCH] .emacs: fix tab-completion for .git/ directories --- .emacs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs b/.emacs index 8f88dc3..dbb5283 100644 --- a/.emacs +++ b/.emacs @@ -91,3 +91,11 @@ ;; I want to see trailing whitespace. (setq-default show-trailing-whitespace t) + +;; Don't ignore .git directories when tab-completing filenames, for +;; two reasons. First, it's nice to be able to tell that a directory +;; is a git repository from the output of "ls", and giving them a .git +;; suffix is an easy way to do that. Second, editing .git/config is +;; the easiest way to do a lot of things in git. +(setq completion-ignored-extensions + (remove ".git/" completion-ignored-extensions)) -- 2.43.2