PHP Mode for Emacs – Flymake

In this period, I’m working a bit with PHP and I’ve immediately thought that enabling flymake for Emacs was indeed a good idea.

Well, someone has apparently already thought about it, so everything you need to know about it is explained here.

I tried it on my machine and it worked like a charm. Combined with some PHP documentation integrated in Emacs, I’m now starting to have a complete and powerful development environment for PHP.

I’m now wondering if there’s any way to get this a step forward. First of all, I’m trying to identify errors different from the parsing ones. What I would really love, for example, is to have Emacs showing me all the unused variables in a PHP file. If you have any idea on how to achieve this, don’t be shy and share your thoughts with me, as a post comment or, if you prefer, as a private e-mail or through twitter.