Sam's Blog entries for category 'perl-critic'
Perlbrew support in Emacs Flymake
Date: Monday, 10 October 2011, 04:00.
Categories: perl, ironman, perlbrew, emacs, flymake, perl-critic, emacs-flymake, emacs-flymake-perlcritic.
Good news for fans of App::perlbrew and Emacs Flymake: I've updated my fork of Flymake to include automatic support for perlbrew.
If you do a perlbrew switch
in one window, the next run of
Flymake in a Perl buffer will automatically update your $PATH
in Emacs with the changes Perlbrew made.
Emacs-flymake-perlcritic overrides the code that was changed, but has also been updated to take advantage of the Perlbrew $PATH sync if it's available. This means that if you're using both you'll need to update both to see the changes.
If you're wondering what either of these are, the article "Perl and PHP continuous static analysis with Emacs Flymake" may help explain.
Perl and PHP continuous static analysis with Emacs Flymake
Date: Monday, 25 July 2011, 09:54.
Categories: perl, ironman, php, emacs, flymake, static-analysis, php-codesniffer, perl-critic, emacs-flymake, emacs-flymake-perlcritic, emacs-flymake-phpcs.
I followed with interest the discussion and excitement last month in a few Perl blogs about people discovering Emacs Flymake.
Being a long-time Emacs user this seemed really interesting to me, but I don't tend to waste a huge amount of time making outright syntax errors.
What I really wanted was something like the static analysis that a modern IDE does for you while you type.
So I hooked up Perl::Critic and PHP_CodeSniffer to Flymake, and here's how you can too.