From 9cb1b3c5b37536cafac4ae4c70da20febc961309 Mon Sep 17 00:00:00 2001 From: gered Date: Tue, 21 Jan 2025 18:01:48 -0500 Subject: [PATCH] set major mode mapping for files with ".include" file extension --- emacs.d/lang-modes.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/emacs.d/lang-modes.el b/emacs.d/lang-modes.el index 4a85c74..0896f77 100644 --- a/emacs.d/lang-modes.el +++ b/emacs.d/lang-modes.el @@ -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 :ensure t :custom