Fix osx emacs integration