add .mjs (ES6 module) extension to init-js2-mode

This commit is contained in:
Nathan Lloyd 2018-03-22 12:00:56 -05:00 committed by Codruț Constantin Gușoi
parent 3e4b35a46d
commit e1a6e8be1c

View file

@ -72,7 +72,7 @@
(defun javascript/init-js2-mode ()
(use-package js2-mode
:defer t
:mode "\\.js\\'"
:mode "\\.[m]*js\\'"
:init
(progn
(add-hook 'js2-mode-local-vars-hook