From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "N. Raghavendra" Newsgroups: gmane.emacs.help Subject: Re: compile/run a code from emacs Date: 18 Jul 2005 01:31:24 +0530 Organization: SunSITE.dk - Supporting Open source Message-ID: <86ek9xw6az.fsf@unicorn.campus.hri> References: <42daa964_1@news.iprimus.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1121630648 31600 80.91.229.2 (17 Jul 2005 20:04:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2005 20:04:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 17 22:04:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuFMA-0001J6-Ke for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2005 22:03:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DuFO4-0006Um-Bo for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jul 2005 16:05:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!t-online.de!tsicnews.teliasonera.com!news.banetele.no!dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help X-Organization: Harish-Chandra Research Institute (HRI) X-Address: Chhatnag Road, Jhusi, Allahabad 211 019, India X-URL: http://www.mri.ernet.in/ X-Phone: +91 (532) 2667 509, 2667 318, 2667 578, 2567 746, 2567 747 X-Fax: +91 (532) 2667 576, 2567 748, 2567 444, 2568 036 X-OpenPGP-Key-ID: 0x03618806 X-OpenPGP-Key-Fingerprint: C75D D0AF 457E 7454 BEC2 37AD C6E1 0407 0361 8806 X-OpenPGP-Public-Key-Available-At: http://www.keyserver.net/ User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 26 Original-NNTP-Posting-Host: 202.41.87.100 Original-X-Trace: news.sunsite.dk DXC=`gC; 0QmSRAdj?5fOS\LBAnYSB=nbEKnkkl58mSL^b02hID5_U; QN1Yc=JDn=l3B; kmATKI?[mLM1khGV>7]YX4kk7W9HVA6CM3d Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:132477 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:27989 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27989 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 | See message headers for contact Harish-Chandra Research Institute | and OpenPGP details.