New indentation option for js-mode
commit933e0ab4b0d583b81b8624def414b7895987927b
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Sun, 8 Mar 2015 02:01:05 +0000 (7 18:01 -0800)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Tue, 10 Mar 2015 17:19:07 +0000 (10 10:19 -0700)
tree881ed232dbd2f0e6443a7036dfcb9fd37bc5aaad
parent33d9869b5f7a5acaca838e2b57e5ae713df9603d
New indentation option for js-mode

* lisp/progmodes/js.el (js--proper-indentation): Add new custom option
`js-indent-first-initialiser' and a function to utilize it,
`js--maybe-goto-declaration-keyword-end'.

* test/indent/js.js: Add local variables.

* test/indent/js-indent-first-initialiser-t.js: New test for
`js-indent-first-initialiser'.

* test/indent/js-indent-first-initialiser-dynamic.js: New test for
`js-indent-first-initialiser'.
lisp/ChangeLog
lisp/progmodes/js.el
test/indent/js-indent-first-initialiser-dynamic.js [new file with mode: 0644]
test/indent/js-indent-first-initialiser-t.js [new file with mode: 0644]
test/indent/js.js