json-emacs/json-mode

Newline indent level

danepowell opened this issue · 1 comments

It seems like there's no way to set the newline indent level. If you have a JSON file indented at 4 spaces (as is the standard for composer.json, for instance) and add a newline anywhere in the file, the line gets reformatted to 2 spaces.

js-indent-level has no effect. My understanding is that json-reformat:indent-level only affects the reformat level, not when adding a newline, and anyway support for json-reformat was removed in #69.

taku0 commented

Does js-indent-level still not work? It works on my machine. I have updated README. 8487a1a