Dedicate an emacs major mode to a particular emacs window.