Change emacs function for Mac