aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackson Ray Hamilton2019-04-09 19:53:37 -0700
committerJackson Ray Hamilton2019-04-09 19:53:37 -0700
commit526ffbad14265addd63db19903a24a9a6073cea6 (patch)
tree811e62f39bf4306a95aea23a6bc6651922632bf1
parentf29010729f85434ee24efd0d7ed29b7e24cf8be6 (diff)
downloademacs-526ffbad14265addd63db19903a24a9a6073cea6.tar.gz
emacs-526ffbad14265addd63db19903a24a9a6073cea6.zip
* etc/NEWS: Document js-jsx-align->-with-<
-rw-r--r--etc/NEWS16
1 files changed, 14 insertions, 2 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 81b7d26dc3a..fbde6e0b66e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1289,8 +1289,20 @@ wrapped in parenthesis (e.g. in a 'return' statement or a function
1289call). It would also fail in many intricate cases. Now, indentation 1289call). It would also fail in many intricate cases. Now, indentation
1290should work anywhere without parenthesis; many more intricacies are 1290should work anywhere without parenthesis; many more intricacies are
1291supported; and, indentation conventions align more closely with those 1291supported; and, indentation conventions align more closely with those
1292of the React developer community, otherwise still adhering to SGML 1292of the React developer community (see 'js-jsx-align->-with-<'),
1293conventions. 1293otherwise still adhering to SGML conventions.
1294
1295---
1296*** New defcustom 'js-jsx-align->-with-<' controls '>' indents.
1297Commonly in JSX code, a '>' on its own line is indented at the same
1298level as its opening '<'. This is the new default for JSX. This
1299behavior is slightly different than that used by SGML in Emacs, where
1300'>' is indented at the same level as attributes, which was also the
1301old default for JSX.
1302
1303This is turned on by default. To get back the old default indentation
1304behavior of aligning '>' with attributes, set 'js-jsx-align->-with-<'
1305to nil.
1294 1306
1295--- 1307---
1296*** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'. 1308*** Indentation uses 'js-indent-level' instead of 'sgml-basic-offset'.