branch: master
commit 1f95553b3d9c34ab6143d003b849ebe1ba9a16d0
Author: Jackson Ray Hamilton <[email protected]>
Commit: Jackson Ray Hamilton <[email protected]>
Add js2-jsx-mode usage instructions
---
js2-mode.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/js2-mode.el b/js2-mode.el
index 64146e1..2c59a40 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -60,6 +60,12 @@
;; (add-to-list 'interpreter-mode-alist '("node" . js2-mode))
+;; Support for JSX is available via the derived mode `js2-jsx-mode'. If you
+;; also want JSX support, use that mode instead:
+
+;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-jsx-mode))
+;; (add-to-list 'interpreter-mode-alist '("node" . js2-jsx-mode))
+
;; To customize how it works:
;; M-x customize-group RET js2-mode RET