In emacs, when I run the command compile, how do I prevent emacs from showing the…
Private research annotation
Sign in to add a private research label or note.
- User
In emacs, when I run the command compile, how do I prevent emacs from showing the compilation buffer? That is, I want the compilation buffer to stay hidden rather than changing the windows that are currently displayed.
Assistant
To prevent the compilation buffer from being displayed when you run the compile command in Emacs, you can customize the display action for that buffer.
Add this to your Emacs config (e.g. ~/.emacs):
emacs-lisp(setq compilation-always-kill t) (setq compilation-ask-about-save nil)The first line tells Emacs to kill the compilation buffer when the compilation process exits rather than displaying it.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.