-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beautify-json hardcodes indent level #19
Comments
+1 |
Closing this now that we're using |
This still doesn't work correctly, as |
Hm you're right - let's see if we can fix that |
Example{"name": "John Smith", "age": 33, "info": {"eat": "pizza", "sport": "soccer"}} (setq json-reformat:indent-width 4) ;; default
;; {
;; "info": {
;; "sport": "soccer",
;; "eat": "pizza"
;; },
;; "age": 33,
;; "name": "John Smith"
;; }
(setq json-reformat:indent-width 12)
;; {
;; "info": {
;; "sport": "soccer",
;; "eat": "pizza"
;; },
;; "age": 33,
;; "name": "John Smith"
;; } Try it! 🍕 |
This is great @gongo, thanks! |
I think this still doesn't work, because |
petere
added a commit
to petere/json-mode
that referenced
this issue
Apr 10, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
beautify-json
hardcodesindent=4
, but it should usejs-indent-level
.The text was updated successfully, but these errors were encountered: