mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-09 22:10:48 -05:00
Use js-mode for .mjs files
This commit is contained in:
parent
90f8b6547e
commit
8922f55e1b
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue