Function: window-layout-rotate-clockwise

window-layout-rotate-clockwise is an autoloaded, interactive and byte-compiled function defined in window-x.el.gz.

Signature

(window-layout-rotate-clockwise &optional WINDOW)

Documentation

Rotate layout of WINDOW's child windows clockwise by 90 degrees.

WINDOW must be a parent window and defaults to the main window of the selected frame. Interactively, with a prefix argument, rotate clockwise the layout of the child windows of the selected window's parent.

Recursively rotate the entire layout of WINDOW's child windows clockwise by 90 degrees. Do not change the selected window of WINDOW's frame. If you want to rotate windows within their frame's layout, consider using rotate-windows instead.

Signal an error if WINDOW is not a parent window or some descendants of WINDOW are of fixed size or atomic. Also signal an error if transpose-dedicated-windows is nil and a descendant window is dedicated.

View in manual

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/window-x.el.gz
;;;###autoload
(defun window-layout-rotate-clockwise (&optional window)
  "Rotate layout of WINDOW's child windows clockwise by 90 degrees.
WINDOW must be a parent window and defaults to the main window of the
selected frame.  Interactively, with a prefix argument, rotate clockwise
the layout of the child windows of the selected window's parent.

Recursively rotate the entire layout of WINDOW's child windows clockwise
by 90 degrees.  Do not change the selected window of WINDOW's frame.  If
you want to rotate windows within their frame's layout, consider using
`rotate-windows' instead.

Signal an error if WINDOW is not a parent window or some descendants of
WINDOW are of fixed size or atomic.  Also signal an error if
`transpose-dedicated-windows' is nil and a descendant window is
dedicated."
  (interactive (list (window--rotate-interactive-arg)))
  (window--transpose (or window (window-main-window)) '(left . below) nil))