Cleaning up after emacs