Skip to content

Commit

Permalink
javascript ES modules use js2-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Bin committed Sep 17, 2024
1 parent c826715 commit 1e99657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/init-file-type.el
Original file line number Diff line number Diff line change
Expand Up @@ -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\\'"
Expand Down

0 comments on commit 1e99657

Please sign in to comment.