prompt and swap to emacs