Function: window-layout-transpose
window-layout-transpose is an autoloaded, interactive and
byte-compiled function defined in window-x.el.gz.
Signature
(window-layout-transpose &optional WINDOW)
Documentation
Transpose windows under WINDOW.
Reorganize the windows under WINDOW so that every horizontal split becomes a vertical split, and vice versa. This is equivalent to diagonally flipping.
If WINDOW is nil, it defaults to the root window of the selected frame.
Interactively, a prefix argument says to transpose the parent window of the selected window.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/window-x.el.gz
;;;###autoload
(defun window-layout-transpose (&optional window)
"Transpose windows under WINDOW.
Reorganize the windows under WINDOW so that every horizontal split
becomes a vertical split, and vice versa. This is equivalent to
diagonally flipping.
If WINDOW is nil, it defaults to the root window of the selected frame.
Interactively, a prefix argument says to transpose the parent window of
the selected window."
(interactive (list (window--rotate-interactive-arg)))
(window--transpose window '(right . below) nil))