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

feature request: format on buffer save #65

Open
gozes opened this issue Sep 26, 2018 · 2 comments
Open

feature request: format on buffer save #65

gozes opened this issue Sep 26, 2018 · 2 comments

Comments

@gozes
Copy link

gozes commented Sep 26, 2018

it be nice if there was a variable I could set to t to say to cargo mode to run cargo format when I save a buffer. I tried calling the cargo-process-fmt from my config with a before save hook but it dosn't seam to work

@Dushistov
Copy link
Contributor

rust-mode already has this feature, so why duplicate?

I have this in my .emacs:

(use-package rust-mode
    :mode "\\.rs\\'"
    :init
    (setq rust-format-on-save t))

@petr-tik
Copy link

Thanks for integrating cargo goodies into emacs.

judging by the last comment, we should consider this issue closed, no?

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

3 participants