unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Baloff <vddr2u@bi.edu.gr>
Subject: Re: compile/run a code from emacs
Date: Tue, 19 Jul 2005 04:46:28 -0700	[thread overview]
Message-ID: <42dbf648_1@news.iprimus.com.au> (raw)
In-Reply-To: <86ek9xw6az.fsf@unicorn.campus.hri>

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	other threads:[~2005-07-19 11:46 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
2005-07-19 11:46   ` Baloff [this message]
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=42dbf648_1@news.iprimus.com.au \
    --to=vddr2u@bi.edu.gr \
    /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).