Function: ace-window

ace-window is an autoloaded, interactive and byte-compiled function defined in ace-window.el.

Signature

(ace-window ARG)

Documentation

Select a window.

Perform an action based on ARG described below.

By default, behaves like extended other-window. See aw-scope which extends it to work with frames.

Prefixed with one C-u (universal-argument), does a swap between the selected window and the current window, so that the selected buffer moves to current window (and current buffer moves to selected window).

Prefixed with two C-u (universal-argument)'s, deletes the selected window.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/ace-window-20220911.358/ace-window.el
;;;###autoload
(defun ace-window (arg)
  "Select a window.
Perform an action based on ARG described below.

By default, behaves like extended `other-window'.
See `aw-scope' which extends it to work with frames.

Prefixed with one \\[universal-argument], does a swap between the
selected window and the current window, so that the selected
buffer moves to current window (and current buffer moves to
selected window).

Prefixed with two \\[universal-argument]'s, deletes the selected
window."
  (interactive "p")
  (setq avy-current-path "")
  (cl-case arg
    (0
     (let ((aw-ignore-on (not aw-ignore-on)))
       (ace-select-window)))
    (4 (ace-swap-window))
    (16 (ace-delete-window))
    (t (ace-select-window))))