From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@gmx.net (=?iso-8859-1?q?Kai_Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Emacs and Perl syntax compile Date: Fri, 01 Aug 2003 22:42:26 +0200 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84y8ydkt3h.fsf@slowfox.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1059833991 23105 80.91.224.249 (2 Aug 2003 14:19:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2003 14:19:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 02 16:19:49 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ixEb-00060U-00 for ; Sat, 02 Aug 2003 16:19:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19igmb-0003SH-7P for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2003 16:45:49 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!npeer.de.kpn-eurorings.net!fu-berlin.de!uni-berlin.de!pd951f070.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: pd951f070.dip.t-dialin.net (217.81.240.112) Original-X-Trace: news.uni-berlin.de 1059770547 25036191 217.81.240.112 (16 [73968]) Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:RTLTH0Xs/qibQ/estuj2Ck593/c= Original-Xref: shelby.stanford.edu gnu.emacs.help:115623 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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:11552 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11552 "Harter, Douglas" writes: > Can someone tell me what I need in my .emacs to do Perl syntax compiles from > emacs and allow compilation mode to handle the errors? Perl syntax compiles? Do you mean perl -c? It ought to be sufficient to set the variable compile-command, perhaps from a mode hook: (defun douglas-perl-setup () (setq compile-command (format "perl -c %s" (buffer-file-name)))) (add-hook 'perl-mode-hook 'douglas-perl-setup) If you use cperl mode instead of perl mode, replace perl-mode-hook with cperl-mode-hook. -- ~/.signature