Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

format-all not formatting json files #171

Open
parrotcar00 opened this issue Jan 21, 2022 · 1 comment
Open

format-all not formatting json files #171

parrotcar00 opened this issue Jan 21, 2022 · 1 comment

Comments

@parrotcar00
Copy link

I've installed jsonnnetfmt such that which jsonnetfmt gives the location for the binary.

I then opened a foo.json file and did: M-x format-all-buffer at which point, I get the prompt:
Formatter for Javascript:

I entered prettier and I as you would expect I get an error because it's trying to use javascript formatter on json file.

Am I doing something wrong? How do I use format-all to format json files?

@lassik
Copy link
Owner

lassik commented Mar 19, 2022

If the buffer in js-mode or json-mode? format-all uses the Emacs mode to determine the programming language.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants