WordPress mode for emacs?

WordPress coding standards are loosely based on the Pear Coding Standards
The Drupal open source project also follows similar standards and has published a guide to configuring various editors and IDEs which includes code for a Emacs Drupal mode which can be modified slightly for WordPress.