JSON Files and emacs
I got tired of emacs not knowing I was essentially editing javascript files while writing JSON so I started to look into JS2-mode until I realised it was kind of overkill. Then I saw this comment that suggested telling emacs to use the inbuilt syntax handling for javascrpt for json files too!
(setq auto-mode-alist (cons '("\\.json\\'" . js-mode) auto-mode-alist))
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