Enable js2-mode for .mjs files

This commit is contained in:
Erwin Boskma 2023-03-04 17:07:41 +01:00
parent 9cd735305c
commit b57b9b1689
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU

View file

@ -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)