-
Notifications
You must be signed in to change notification settings - Fork 6
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
Format doesn't work #5
Comments
This have another side effect. When i want to close emacs window, get following error message:
it should be a mode manage buffer, should not mention user to save it. |
You can comment this line, to close auto format, and, you can leave the emacs builtin format feature, you need set indentation to 2 (add-hook 'mint-mode-hook (lambda ()
(setq-local js-indent-level 2)
))
|
BTW: i consider this issue caused by i consider this probably a design error, |
I fix this in #6 , though, because the issue from upstream mint-lang, i have to workaround the return code 1 as successful becuuse this issue |
You should probably depend on reformatter.el to call the code formatter. Or just rely on format-all.el and apheleia.el to cover it. |
Yes, i stolen the code from the format-all.el, use it to locate the project root. |
Hi all, I'm closing this issue since it was fixed in #6 Feel free to reopen if you need to discuss formatting further. |
When I save a file, I get this error:
Running
mint format
on my command line works correctly.The text was updated successfully, but these errors were encountered: