Managing multiple terminal buffers in Emacs