From 1ab3bac13704ab6d3c96620307c24fc113f86244 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 20 Oct 2025 17:45:49 +0900 Subject: [PATCH] Add --- emacs.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emacs.el b/emacs.el index 5e02b7d..0f6e3ae 100644 --- a/emacs.el +++ b/emacs.el @@ -378,6 +378,16 @@ Otherwize hook it." (add-hook 'conf-mode-hook 'my-set-require-final-newline) +(defun my-set-configure-gitconfig () + "Configure .gitconfig and .git/config ." + (when (cl-loop for re in '("/.gitconfig\\'" "/.git/config\\'") + if (string-match-p re buffer-file-name) return t + finally return nil) + (setq indent-tabs-mode t))) + +(add-hook 'conf-mode-hook + 'my-set-configure-gitconfig) + ;; Used from term-cursor ;; hbar is too hard to find... (defun my-cursor-type-change (&rest args)