in reply to check syntax of perl code and pod in emacs
http://flymake.sourceforge.net/
It perfoms "perl -cw" checking in the background when you are idle (not typing). Like a spell-checker it highlights your errors, so you can easily spot them (and are not forced to do explicit compiles).
(when (not (equal (substring (buffer-string) -3 -1) "OK"))
(switch-to-buffer "perlsyn")
(compilation-mode)
(goto-char (point-min))))
This enables font-locking and the "hyperlink" feature of the error lines.
|
|---|