aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorIngo Lohmar2017-07-01 13:09:20 +0200
committerIngo Lohmar2017-07-03 20:06:27 +0200
commit9ac7dccc51ee834b06cdabf6a5746eb375f984f0 (patch)
treee828d23bc109d4576169f782dba1982c840f822c /etc
parentcaf92449802ea2250d6ac30a01797b0554d71dc3 (diff)
downloademacs-9ac7dccc51ee834b06cdabf6a5746eb375f984f0.tar.gz
emacs-9ac7dccc51ee834b06cdabf6a5746eb375f984f0.zip
Offer non-aligned indentation in lists in js-mode (Bug#27503)
* lisp/progmodes/js.el (js--proper-indentation): New customization option 'js-indent-align-list-continuation'. Affects argument lists as well as arrays and object properties. * test/manual/indent/js-indent-align-list-continuation-nil.js: Test the change.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 2afed2d2534..a766642ef22 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -839,8 +839,15 @@ initialization files.
839--- 839---
840** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'. 840** 'auto-revert-use-notify' is set back to t in 'global-auto-revert-mode'.
841 841
842** JS mode
843
844---
845*** JS mode now sets 'comment-multi-line' to t.
846
842--- 847---
843** JS mode now sets 'comment-multi-line' to t. 848*** New variable 'js-indent-align-list-continuation', when set to nil,
849will not align continuations of bracketed lists, but will indent them
850by the fixed width 'js-indent-level'.
844 851
845** CSS mode 852** CSS mode
846 853