Skip to content
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

New major mode js-json-mode in emacs (master) #115

Open
jangid opened this issue Aug 9, 2022 · 1 comment
Open

New major mode js-json-mode in emacs (master) #115

jangid opened this issue Aug 9, 2022 · 1 comment

Comments

@jangid
Copy link

jangid commented Aug 9, 2022

This is related to my earlier bug report #101

Emacs (master) aka 29.x release now has a new major mode - js-json-mode. Can we remove the dependency on external package json-mode for Emacs version >=29?

@jscheid
Copy link
Owner

jscheid commented Aug 10, 2022

I think all that's needed here is adding the new mode to prettier-major-mode-parsers. I'll try and find time to do so next week, in the meantime you should be able to patch it up pretty easy. Something like

(add-to-list 'prettier-major-mode-parsers
             `(js-json-mode . ,(cdr (assoc 'json-mode prettier-major-mode-parsers))))

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

No branches or pull requests

2 participants