Better compile command15 Jun 2015, by Artur Malabarba.
Having to confirm-before-save buffers every time you call
compile is nearly as
outrageous as having no key bound to
compile in the first place. This snippet
takes care of both and, as a bonus, makes the compilation window follow a
predetermined size and ensures that point will follow the output.
Thanks to Clément and abo-abo for the variable suggestions, which also led me to
compilation-skip-threshold variable. Warnings are important to fix,
but in some languages it’s common to have warnings you can’t fix, so it’s nice
for the compilation buffer to not stop scrolling on them.
The command now propagates the prefix argument to the
compile function, so
that you can start the buffer in
comint-mode. See the update on this post for