Move auto-mode-alist fallbacks to bottom

So they don't override auto-mode-alist entries added by packages, like
direnv's .envrc entry.
This commit is contained in:
Henrik Lissner 2020-07-26 18:26:33 -04:00
parent cacc9d2e9b
commit ccfaf3f464
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -172,10 +172,12 @@ possible."
;;
;;; Extra file extensions to support
(push '("/LICENSE\\'" . text-mode) auto-mode-alist)
(push '("\\.log\\'" . text-mode) auto-mode-alist)
(push '("rc\\'" . conf-mode) auto-mode-alist)
(push '("\\.\\(?:hex\\|nes\\)\\'" . hexl-mode) auto-mode-alist)
(nconc
auto-mode-alist
'(("/LICENSE\\'" . text-mode)
("\\.log\\'" . text-mode)
("rc\\'" . conf-mode)
("\\.\\(?:hex\\|nes\\)\\'" . hexl-mode)))
;;