help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compile/run a code from emacs


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:
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:
 */

do you mean to put the above 4 lines in my c++ code but with out the /*, *, */? since they are for commenting?

If 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)

when I put this line in my ~/.emacs and hit f5 I get "Mark set" in the mini buffer


HTH,
Raghavendra.


Hello
thanks,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]