Function: window-layout-rotate-anticlockwise

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

Signature

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

Documentation

Rotate layout of WINDOW's child windows counterclockwise 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 counterclockwise the layout of the child windows of the selected window's parent.

Recursively rotate the entire layout of WINDOW's child windows counterclockwise 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-back instead.

Signal an error if WINDOW is not a parent window or one of WINDOW's descendants is 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-anticlockwise (&optional window)
  "Rotate layout of WINDOW's child windows counterclockwise 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
counterclockwise the layout of the child windows of the selected
window's parent.

Recursively rotate the entire layout of WINDOW's child windows
counterclockwise 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-back' instead.

Signal an error if WINDOW is not a parent window or one of WINDOW's
descendants is 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)) '(right . above) nil))