From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Johannes Kastl Newsgroups: gmane.emacs.help Subject: NEWBIE: different compile-commands for different fiel types (cc, xml) Date: Thu, 28 Oct 2004 16:04:11 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2uccnrF29k9q8U1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098972455 3690 80.91.229.6 (28 Oct 2004 14:07:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2004 14:07:35 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 28 16:07:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CNAw3-0002g2-00 for ; Thu, 28 Oct 2004 16:07:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CNB3q-0007B9-OP for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Oct 2004 10:15:30 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: news.uni-berlin.de jInn+mt+D+CpZGN1vkYyEwsNkOWIPGVCrq+EJ1QPYDGqmBJJhy User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.2) Gecko/20040804 Mnenhy/0.6.0.104 X-Accept-Language: de-DE, en X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Original-Xref: shelby.stanford.edu gnu.emacs.help:126166 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:21546 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:21546 Hello everyone, Im kind of a newbie to emacs, or more to configuration emacs. I have been using emacs for quite some time, and now I need to setup the compile-command. The background is that I am compiling .cc files, and also .xml files at the moment. And I am proud that I got it working to specify my own complie-command in the settings. But it is only one, for the other filetype I have to change it everytime, which is "kind of uncomfortable". So, is there a way to set the compile-command to "make whatever" for .cc files and to "make anotherthing" for .xml files? Adding local variables in xml files dont work for me, since it doesnt compile afterwards, cos the source code contains "non-xml" text. Has anybody got an idea how to solve this, or is this just not possible with my emacs? Thanks in advance, Johannes P.S. I am running emacs on a suse 8.2 linux, emacs is GNU Emacs 21.2.1 (i586-suse-linux).