wait for emacs if using sudo -e