with (x)emacs, how could I run the ‘compile’ command without separately pressing enter to accept the default command? (I can bind the ‘compile’ to a key but I’d like the whole thing to happen without separate pressing of enter)
Of course, similar behaviour with some else command would also be ok.
I used to
(setq compilation-read-command nil)in my.emacsand invokecompilewith a prefix argument when I actually wanted to change the command line:C-u M-x compileSince then, I found about the
recompilecommand that’s even closer to what I want. Most importantly, it does not prompt for the command line. This one is the command I actually bound to a function key.The usual workflow then goes:
M-x compilethe first time per project, andF9at each iteration of the edit-compile-test process.