emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 526ffba 2/2: * etc/NEWS: Document js-jsx-align->-wi


From: Jackson Ray Hamilton
Subject: [Emacs-diffs] master 526ffba 2/2: * etc/NEWS: Document js-jsx-align->-with-<
Date: Tue, 9 Apr 2019 22:54:42 -0400 (EDT)

branch: master
commit 526ffbad14265addd63db19903a24a9a6073cea6
Author: Jackson Ray Hamilton <address@hidden>
Commit: Jackson Ray Hamilton <address@hidden>

    * etc/NEWS: Document js-jsx-align->-with-<
---
 etc/NEWS | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 81b7d26..fbde6e0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1289,8 +1289,20 @@ wrapped in parenthesis (e.g. in a 'return' statement or 
a function
 call).  It would also fail in many intricate cases.  Now, indentation
 should work anywhere without parenthesis; many more intricacies are
 supported; and, indentation conventions align more closely with those
-of the React developer community, otherwise still adhering to SGML
-conventions.
+of the React developer community (see 'js-jsx-align->-with-<'),
+otherwise still adhering to SGML conventions.
+
+---
+*** New defcustom 'js-jsx-align->-with-<' controls '>' indents.
+Commonly in JSX code, a '>' on its own line is indented at the same
+level as its opening '<'.  This is the new default for JSX.  This
+behavior is slightly different than that used by SGML in Emacs, where
+'>' is indented at the same level as attributes, which was also the
+old default for JSX.
+
+This is turned on by default.  To get back the old default indentation
+behavior of aligning '>' with attributes, set 'js-jsx-align->-with-<'
+to nil.
 
 ---
 *** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'.



reply via email to

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