emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1f95553 033/110: Add js2-jsx-mode usage instructions


From: Dmitry Gutov
Subject: [elpa] master 1f95553 033/110: Add js2-jsx-mode usage instructions
Date: Thu, 23 Jun 2016 01:12:54 +0000 (UTC)

branch: master
commit 1f95553b3d9c34ab6143d003b849ebe1ba9a16d0
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]