make ~/Applications and brew links; fix emacs sudo edit for os x