[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs and Perl syntax compile
From: |
Kai Großjohann |
Subject: |
Re: Emacs and Perl syntax compile |
Date: |
Fri, 01 Aug 2003 22:42:26 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
"Harter, Douglas" <dharter@state.pa.us> 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