From fc267b5bb41126a7bb53aa5d838d63fff4331560 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Thu, 28 Mar 2024 13:59:30 +1300 Subject: [PATCH] emacs: detect major modes for .eml and .scd files .eml is an email which uses mail-mode and .scd is a presentation-oriented markup language for writing scdoc documents, which are compiled into manual pages. .scd files are similar to markdown in syntax, so they can use markdown-mode. --- .emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index ab2cf03..0feb084 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -63,6 +63,11 @@ (add-hook 'lisp-data-mode-hook 'indent-spc-hook) (setq fill-column 74) + +;; file extensions +(add-to-list 'auto-mode-alist '("\\.eml\\'" . mail-mode)) +(add-to-list 'auto-mode-alist '("\\.scd\\'" . markdown-mode)) + ;; treesitter modes (setq major-mode-remap-alist '((c-mode . c-ts-mode)