From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Baloff Newsgroups: gmane.emacs.help Subject: Re: compile/run a code from emacs Date: Tue, 19 Jul 2005 04:46:28 -0700 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au Message-ID: <42dbf648_1@news.iprimus.com.au> References: <42daa964_1@news.iprimus.com.au> <86ek9xw6az.fsf@unicorn.campus.hri> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121711918 22124 80.91.229.2 (18 Jul 2005 18:38:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2005 18:38:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 18 20:38:38 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuaVP-0007pB-AK for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jul 2005 20:38:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuaXM-0004GY-0K for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jul 2005 14:40:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed.pacific.net.au!token.pipenetworks.com!218.100.2.58.MISMATCH!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: <86ek9xw6az.fsf@unicorn.campus.hri> X-Original-NNTP-Posting-Host: 210.50.67.181 X-Original-NNTP-Posting-Host: 127.0.0.1 Original-Lines: 36 Original-NNTP-Posting-Host: 203.134.67.67 Original-X-Trace: 1121711691 un-2park-reader-02.sydney.pipenetworks.com.au 796 203.134.67.67:2079 Original-X-Complaints-To: Abuse, including message IDs to abuse@pipenetworks.com Original-Xref: shelby.stanford.edu gnu.emacs.help:132484 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27997 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27997 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,