kwrooijen / cargo.el

Emacs Minor Mode for Cargo, Rust's Package Manager.
GNU General Public License v3.0
171 stars 67 forks source link

feature request: format on buffer save #65

Open gozes opened 6 years ago

gozes commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

Thanks for integrating cargo goodies into emacs.

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