|
From: | Baloff |
Subject: | Re: compile/run a code from emacs |
Date: | Tue, 19 Jul 2005 04:46:28 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 |
N. Raghavendra wrote:
do you mean to put the above 4 lines in my c++ code but with out the /*, *, */? since they are for commenting?At 2005-07-18T05:06:09-07:00, Baloff wrote:is there a way to just hit one key and it does "$make && ./project1" for me?In your source files, specify the value of the variable `compile-command' like this:/* * Local Variables:* mode: c * compile-command: "make && ./project1" * End: */
when I put this line in my ~/.emacs and hit f5 I get "Mark set" in the mini bufferIf you want to bind, for instance, the function key `f5' to compilation, you can put this in your init file: (global-set-key [f5] 'compile)
HTH, Raghavendra.
Hello thanks,
[Prev in Thread] | Current Thread | [Next in Thread] |