[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: perl-mode
From: |
Dietmar Kehr |
Subject: |
Re: perl-mode |
Date: |
Tue, 01 Mar 2005 12:58:43 +0100 |
User-agent: |
Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) |
>
> I would suggest:
>
> (add-hook 'perl-mode-hook
> (lambda ()
> (set (make-local-variable 'compile-command)
> (format "perl %s"
> (file-name-nondirectory buffer-file-name)))))
> `
> and then `M-x compile', which gives you a *compilation* buffer whose
> error messges you can navigate (instead of a *Shell Command Output*
> buffer).
>
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.
- Re: perl-mode,
Dietmar Kehr <=