From: "N. Raghavendra" <raghu@mri.ernet.in>
Subject: Re: compile/run a code from emacs
Date: 18 Jul 2005 01:31:24 +0530 [thread overview]
Message-ID: <86ek9xw6az.fsf@unicorn.campus.hri> (raw)
In-Reply-To: 42daa964_1@news.iprimus.com.au
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.
next prev parent reply other threads:[~2005-07-17 20:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-18 12:06 compile/run a code from emacs Baloff
2005-07-17 20:01 ` N. Raghavendra [this message]
2005-07-19 11:46 ` Baloff
2005-07-19 5:09 ` N. Raghavendra
2005-07-20 13:14 ` Baloff
2005-07-20 8:43 ` N. Raghavendra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86ek9xw6az.fsf@unicorn.campus.hri \
--to=raghu@mri.ernet.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).