refactor: remove redundant auto-mode-alist entries

Also removes the *.{hex,nes} entry because it's far too niche to be a
global default.
This commit is contained in:
Henrik Lissner 2024-04-05 12:03:54 -04:00
parent fb96c8df5a
commit 82e0641bf7
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 3 additions and 10 deletions

View file

@ -250,8 +250,7 @@ tell you about it. Very annoying. This prevents that."
auto-mode-alist auto-mode-alist
'(("/LICENSE\\'" . text-mode) '(("/LICENSE\\'" . text-mode)
("\\.log\\'" . text-mode) ("\\.log\\'" . text-mode)
("rc\\'" . conf-mode) ("rc\\'" . conf-mode)))
("\\.\\(?:hex\\|nes\\)\\'" . hexl-mode)))
;; ;;

View file

@ -143,14 +143,8 @@
(setq selection-coding-system 'utf-8)) (setq selection-coding-system 'utf-8))
;;; Support for more file extensions ;;; Support for Doom-specific file extensions
;; Add support for additional file extensions. (add-to-list 'auto-mode-alist '("/\\.doom\\(?:rc\\|project\\|module\\|profile\\)\\'" . emacs-lisp-mode))
(dolist (entry '(("/\\.doom\\(?:rc\\|project\\|module\\|profile\\)\\'" . emacs-lisp-mode)
("/LICENSE\\'" . text-mode)
("\\.log\\'" . text-mode)
("rc\\'" . conf-mode)
("\\.\\(?:hex\\|nes\\)\\'" . hexl-mode)))
(push entry auto-mode-alist))
;; ;;