Enable js2-mode for .mjs files
This commit is contained in:
parent
9cd735305c
commit
b57b9b1689
1 changed files with 1 additions and 0 deletions
|
@ -1012,6 +1012,7 @@ Indent 2 spaces
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package js2-mode
|
(use-package js2-mode
|
||||||
:mode
|
:mode
|
||||||
|
("\\.mjs\\'" . js2-mode)
|
||||||
("\\.jsx?\\'" . js2-jsx-mode)
|
("\\.jsx?\\'" . js2-jsx-mode)
|
||||||
:hook
|
:hook
|
||||||
(js2-mode . lsp-deferred)
|
(js2-mode . lsp-deferred)
|
||||||
|
|
Loading…
Reference in a new issue