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 _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs