PHP Mode for emacs on Mac OS X
It's been a long time since I figured this out and I can't remember what resource I used to help me. Anyway to get PHP Mode working with the native emacs bundled with Mac OS X do the following:
$ mkdir elisp; cd elisp $ wget http://bit.ly/cLqD47
Then edit/create the file '~/.emacs and put in the following:
(add-to-list 'load-path "~/elisp")
(load "php-mode")
(add-to-list 'auto-mode-alist
'("\\.php[34]?\\'\\|\\.phtml\\'" . php-mode))
Et voila, you will now have lovely syntax highlighting and auto indenting when editing your PHP files. (NB: The bit.ly link points to the php-mode.el script hosted on Sourceforge.)