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.
Update 16 Jun 2015
Thanks to Clément and abo-abo for the variable suggestions, which also led me to
find the 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.
Update 17 Jun 2016
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
more information.
Better compile command
15 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 tocompile
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.Update 16 Jun 2015
Thanks to Clément and abo-abo for the variable suggestions, which also led me to find the
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.Update 17 Jun 2016
The command now propagates the prefix argument to the
compile
function, so that you can start the buffer incomint-mode
. See the update on this post for more information.Tags: programming, compilation, init.el, emacs,
Create Github PRs from Emacs with Magit (again) »
« New in Emacs 25.1: Archive priorities and downgrading packages
Related Posts
Turbo up your Ruby console in Emacs in programming
A few paredit keys that take over the world in programming
Restarting the compilation buffer in comint-mode in programming
Content © 2019, All rights reserved. Icons under CC3.0.