]> git.eshelyaron.com Git - emacs.git/commit
Add new defcustom js-jsx-indent-level
authorJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Wed, 10 Apr 2019 01:44:36 +0000 (18:44 -0700)
committerJackson Ray Hamilton <jackson@jacksonrayhamilton.com>
Wed, 10 Apr 2019 01:44:36 +0000 (18:44 -0700)
commit5772971f255c7031753e02492ae979c501018a50
treefd79d0b01e84787dcb61fd97c1c695fec60ae598
parentd82603747564063f908c9c877449c827a9808528
Add new defcustom js-jsx-indent-level

* lisp/progmodes/js.el (js-jsx-indent-level): New variable for users
to set JSX indentation differently than JS, like before.
(js-jsx--contextual-indentation): Respect js-jsx-indent-level when
it’s set.

* test/manual/indent/jsx-indent-level.jsx: New test for
js-jsx-indent-level.
lisp/progmodes/js.el
test/manual/indent/jsx-indent-level.jsx [new file with mode: 0644]