emacs switch horizontal vertical code example Example: emacs switch horizontal vertical init.el: (require 'transpose-frame) in buffer: M-x transpose-frame