From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.help Subject: Re: help with makefile command line Date: Tue, 25 Mar 2008 23:04:29 +0900 Organization: the Church of Emacs Message-ID: References: <000001c88e79$86451340$33160e98@ece.ncsu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1206453935 5746 80.91.229.12 (25 Mar 2008 14:05:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 14:05:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 25 15:06:06 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Je9mc-00046B-Cr for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2008 15:05:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Je9m1-0008SP-8j for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Mar 2008 10:05:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Je9lk-0008Rl-78 for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 10:04:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Je9lh-0008RR-0g for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 10:04:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Je9lg-0008RO-Pa for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 10:04:48 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Je9lf-00022G-U0 for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 10:04:48 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Je9la-0005Uu-1X for help-gnu-emacs@gnu.org; Tue, 25 Mar 2008 14:04:42 +0000 Original-Received: from kd125052252076.ppp-bb.dion.ne.jp ([125.52.252.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Mar 2008 14:04:42 +0000 Original-Received: from william.xwl by kd125052252076.ppp-bb.dion.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Mar 2008 14:04:42 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: kd125052252076.ppp-bb.dion.ne.jp User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.92 (darwin) Cancel-Lock: sha1:lk0NpfxkSaWkT43o8v2cL4kNcHE= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:52686 Archived-At: "Balaji V. Iyer" writes: > I use the compile option extenstively in emacs. When I type "M-x > compile" the default line is "make -k" Many times I do not have a make > file thus I would lke the default line to be > > "gcc -ansi -O4 -Wall " > > How do I do this? You may be interested in buffer-action.el -- Perform actions(compile/run, etc) in buffer based on mode/filename. http://permalink.gmane.org/gmane.emacs.sources/2826 -- William http://williamxu.net9.org 点绛唇 王禹 雨恨云愁,江南依旧称佳丽。 水村渔市,一缕孤烟细。 天际征鸿,遥认行如缀。 平生事,此时凝睇,谁会恁栏意!