set major mode mapping for files with ".include" file extension

This commit is contained in:
Gered 2025-01-21 18:01:48 -05:00
parent cfa273cb81
commit 9cb1b3c5b3

View file

@ -5,6 +5,15 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; fix / adjust some file extension mappings
;; otherwise ".include" gets mapped to fundamental-mode, which is very useless
;; (.include is often used for various config files which allowing including)
(require 'files)
(add-to-list 'auto-mode-alist '("\\.include\\'" . conf-mode-maybe))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package treesit-auto (use-package treesit-auto
:ensure t :ensure t
:custom :custom