[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/js2-mode bb73461 20/61: Revert doc changes and explain
From: |
Dmitry Gutov |
Subject: |
[elpa] externals/js2-mode bb73461 20/61: Revert doc changes and explain JSX options for all emacsen later |
Date: |
Sun, 20 Dec 2020 12:20:01 -0500 (EST) |
branch: externals/js2-mode
commit bb73461c2c7048d811b38e6b533a30fb5fdcea93
Author: Jackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Commit: Jackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Revert doc changes and explain JSX options for all emacsen later
---
js2-mode.el | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/js2-mode.el b/js2-mode.el
index 56e2ee2..4686be8 100644
--- a/js2-mode.el
+++ b/js2-mode.el
@@ -51,11 +51,8 @@
;; (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
-;; Alternatively, you can install it as a minor mode just for JavaScript
linting
-;; and/or to use packages that integrate with it. (Also, in Emacs 27, the new
-;; JSX features added in that release are only accessible within this minor
-;; mode. Linting of JSX code is also likely to fail.) To install it as a
minor
-;; mode:
+;; Alternatively, to install it as a minor mode just for JavaScript linting,
+;; you must add it to the appropriate major-mode hook. Normally this would be:
;; (add-hook 'js-mode-hook 'js2-minor-mode)
@@ -63,6 +60,14 @@
;; (add-to-list 'interpreter-mode-alist '("node" . js2-mode))
+;; Use Emacs 27 and want to write JSX? Then use `js2-minor-mode' as described
+;; above. Use Emacs 26 or earlier? Then use `js2-jsx-mode':
+
+;; (add-to-list 'auto-mode-alist '("\\.jsx?\\'" . js2-jsx-mode))
+;; (add-to-list 'interpreter-mode-alist '("node" . js2-jsx-mode))
+
+;; Note that linting of JSX code may fail in both modes.
+
;; To customize how it works:
;; M-x customize-group RET js2-mode RET
- [elpa] externals/js2-mode bf7191c 08/61: Recommend js-mode + js2-minor-mode and Emacs 27 for JSX, (continued)
- [elpa] externals/js2-mode bf7191c 08/61: Recommend js-mode + js2-minor-mode and Emacs 27 for JSX, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 2ce4985 09/61: [ci skip] Stop mentioning Emacs 22 and 23, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 1662cb8 13/61: Document changes with relation to JSX support added in Emacs 27, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 41ca3ad 14/61: Reference latest revision of the commentary, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 037bcf7 16/61: Clarify what is likely to fail, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode e785721 17/61: Reference latest revision of the commentary, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode d9bba5b 12/61: Update recommendations for using JSX with respect to Emacs 27, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 6cc0a8a 15/61: Merge paragraphs so the information reads better, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 14113fe 18/61: Remove date, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 8e2cdd4 19/61: Revert extra added information, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode bb73461 20/61: Revert doc changes and explain JSX options for all emacsen later,
Dmitry Gutov <=
- [elpa] externals/js2-mode 3a80b00 25/61: use type face for class, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 9837d78 28/61: Fix ‘huge-hex’ test for newer Emacsen., Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 515d876 27/61: Fix parsing static props without semicolons, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 61a8c91 29/61: Merge pull request #550 from phst/huge-hex, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 997d6bd 30/61: Avoid undefined behavior in indentation tests., Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 999c0e7 22/61: Merge pull request #531 from jacksonrayhamilton/jsx-documentation, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 2d2fb4b 21/61: Reference latest revision of the commentary, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 146c1f6 32/61: Migrate off deprecated ‘cl’ library., Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode d642b7b 34/61: Remove an unused variable, Dmitry Gutov, 2020/12/20
- [elpa] externals/js2-mode 8841175 23/61: support optional-chaining operator, Dmitry Gutov, 2020/12/20