help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: perl-mode


From: Kevin Rodgers
Subject: Re: perl-mode
Date: Tue, 01 Mar 2005 11:50:40 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Dietmar Kehr wrote:
> I can't see any difference in the work of `M-x compile'
> if I use
>
>  (add-hook 'perl-mode-hook
>             (lambda ()
>               (set (make-local-variable 'compile-command)
>                    (format "perl %s"
>                            (file-name-nondirectory buffer-file-name)))))
>
> (I've wrote it in a file and have loaded it with 'load-file').
>
>
> In both cases (with and without it) after using
> `M-x compile' emacs suggests 'make -k'
> and behaves in the same way.

You need to invoke perl-mode, either explicitly via M-x or implicitly by
visiting a Perl file.

--
Kevin Rodgers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]