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: cc18218889
This commit is contained in:
Ajai Nelson
2025-01-09 00:22:22 -05:00
committed by Henrik Lissner
parent 8a064ffaec
commit 5aed9baa29

View File

@ -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)
;;