Emacs: enable `erase-buffer` command

I'm an adult, Emacs.
Emacs: rename window manipulation functions, clean up slightly