rust-lang / rust-mode

Emacs configuration for Rust
Apache License 2.0
1.09k stars 176 forks source link

How to stop making new rustfmt windows? #469

Closed lacker closed 1 year ago

lacker commented 1 year ago

I have rust-mode configured to run rustfmt on save, which generally I like. However, every time there's an error, it splits an existing window so that it can show the *rustfmt* buffer, and then after fixing the errors, it closes the *rustfmt* buffer, but leaves the new window configuration. So as I work it just slowly changes around my window setup. Can I avoid this behavior somehow while still automatically running rustfmt on save?

brotzeit commented 1 year ago

Try (setq rust-format-show-buffer nil).

lacker commented 1 year ago

Perfect, thanks.