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: N. Raghavendra
Subject: Re: compile/run a code from emacs
Date: 18 Jul 2005 01:31:24 +0530
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

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

HTH,
Raghavendra.

-- 
N. Raghavendra <raghu@mri.ernet.in> | See message headers for contact
Harish-Chandra Research Institute   | and OpenPGP details.


reply via email to

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