bind imenu to ;i
erlang mode stuff
implement recompile on save
use recent bash version

OSX ships with version 3.x and there is v4.x in homebrew
work erlang indentation settings