diff options
| author | Ingo Lohmar | 2017-07-01 13:09:20 +0200 |
|---|---|---|
| committer | Ingo Lohmar | 2017-07-03 20:06:27 +0200 |
| commit | 9ac7dccc51ee834b06cdabf6a5746eb375f984f0 (patch) | |
| tree | e828d23bc109d4576169f782dba1982c840f822c /etc | |
| parent | caf92449802ea2250d6ac30a01797b0554d71dc3 (diff) | |
| download | emacs-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/NEWS | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -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, |
| 849 | will not align continuations of bracketed lists, but will indent them | ||
| 850 | by the fixed width 'js-indent-level'. | ||
| 844 | 851 | ||
| 845 | ** CSS mode | 852 | ** CSS mode |
| 846 | 853 | ||