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.
This commit is contained in:
parent
3752099dc5
commit
fc267b5bb4
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue