changed restart-emacs function