From ced352e9e7f12c0dab976f3f0e4f71a0f77b32f3 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sat, 31 Aug 2024 14:36:47 -0400 Subject: Edit git's COMMIT_EDITMSG files in text-mode --- .emacs.d/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 65cb9fe..0c35928 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -187,7 +187,8 @@ plain variables. This means that `setopt' will execute any view-read-only t) (add-to-list 'auto-mode-alist '("\\README.*" . text-mode)) (add-to-list 'auto-mode-alist '("\\.*rc$" . conf-mode)) - (add-to-list 'auto-mode-alist '("\\.bashrc$" . sh-mode))) + (add-to-list 'auto-mode-alist '("\\.bashrc$" . sh-mode)) + (add-to-list 'auto-mode-alist '("\\COMMIT_EDITMSG$" . text-mode))) (setq disabled-command-function nil) -- cgit v1.2.3-60-g2f50