From 1e996578cce17315da636ff944d26af0712960c0 Mon Sep 17 00:00:00 2001 From: Chen Bin Date: Tue, 17 Sep 2024 19:03:57 +1000 Subject: [PATCH] javascript ES modules use js2-mode --- lisp/init-file-type.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/init-file-type.el b/lisp/init-file-type.el index 6573c4a1b..7f2cdbd5c 100644 --- a/lisp/init-file-type.el +++ b/lisp/init-file-type.el @@ -105,7 +105,7 @@ (cond ((not *no-memory*) ;; javascript - (my-add-auto-mode 'js2-mode "\\.js\\(\\.erb\\)?\\'") + (my-add-auto-mode 'js2-mode "\\.m?js\\(\\.erb\\)?\\'") ;; JSX (my-add-auto-mode 'rjsx-mode "\\.[tj]sx\\'"