From 5aed9baa29f52bdaf0ae440bb38ee91e41ce4be5 Mon Sep 17 00:00:00 2001 From: Ajai Nelson <22969541+AjaiKN@users.noreply.github.com> Date: Thu, 9 Jan 2025 00:22:22 -0500 Subject: [PATCH] fix: auto-mode-alist: make /*rc rule low-priority The broad /*rc rule, which is intended as a fallback, should be added to the end of auto-mode-alist, not the beginning. Otherwise, for example, it overrides the rule for .zshrc files. Amend: cc1821888924 --- lisp/doom-editor.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doom-editor.el b/lisp/doom-editor.el index 88f7a59f8..a57389964 100644 --- a/lisp/doom-editor.el +++ b/lisp/doom-editor.el @@ -247,7 +247,7 @@ tell you about it. Very annoying. This prevents that." ;;; Extra file extensions to support (add-to-list 'auto-mode-alist '("/LICENSE\\'" . text-mode)) -(add-to-list 'auto-mode-alist '("rc\\'" . conf-mode)) +(add-to-list 'auto-mode-alist '("rc\\'" . conf-mode) 'append) ;;