what's the most efficient emacs workflow for compilation and interactive execution cycles (C++/makefile) -


what's preferred practice compile-run cycle in emacs?

previously, used m-x compile (mapped f12) make compile command. within makefile had entry run program compiled. worked fine when programs non-interactive, compilation buffer non-interactive.

of course open shell , run executable, i'd automate compile-run cycle as possible , assume there must standard practice , i'm guessing executing-from-the-makefile method kluge...

c-u f12 works, i'm wondering if that's best approach doing (and if so, how can bind f12 equivalent c-u m-x compile instead of m-x compile?).

it can't simpler c-u m-x compile. have makefile task defined. you're asking how map f12?

try this:

(defun compile-interactive ()   (interactive)   (setq current-prefix-arg '(4))   (call-interactively 'compile))  (global-set-key (kbd "<f12>") 'compile-interactive) 

you should read interactive options , optional arguments sections of manual.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -