diff --git a/emacs.d/init.el b/emacs.d/init.el index 3503943..4f24c70 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -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))