Use js-mode for .mjs files

This commit is contained in:
Andrew Scott 2022-05-10 19:58:13 -04:00
parent 90f8b6547e
commit 8922f55e1b
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -342,6 +342,8 @@
(setq css-indent-offset 2)
(setq js-indent-level 2)
(add-to-list 'auto-mode-alist '("\\.mjs\\'" . js-mode))
(use-package js2-mode
:config
(add-to-list 'interpreter-mode-alist '("#!/usr/bin/env node" . js2-mode))