Function: hycontrol-windows-grid-by-major-mode

hycontrol-windows-grid-by-major-mode is an autoloaded, interactive and byte-compiled function defined in hycontrol.el.

Signature

(hycontrol-windows-grid-by-major-mode ARG MODE)

Documentation

Display a prefix ARG-sized grid of windows with buffers of major MODE.

Left digit of ARG is the number of grid rows and the right digit is the number of grid columns.

See documentation of hycontrol-windows-grid for further details.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hycontrol.el
;;;###autoload
(defun hycontrol-windows-grid-by-major-mode (arg mode)
  "Display a prefix ARG-sized grid of windows with buffers of major MODE.
Left digit of ARG is the number of grid rows and the right digit
is the number of grid columns.

See documentation of `hycontrol-windows-grid' for further details."
  (interactive
   (list (prefix-numeric-value current-prefix-arg)
	 (let* ((set:equal-op 'eq)
		(mode-strings (mapcar #'symbol-name (apply #'set:create (mapcar (lambda (buf) (buffer-local-value 'major-mode buf))
										(hycontrol-windows-grid-buffer-list))))))
	   (intern-soft (completing-read "(HyControl Grid Windows): Major mode of buffers to display: "
					 mode-strings nil t nil nil (symbol-name major-mode))))))
  (let ((hycontrol-display-buffer-predicate-list `((eq major-mode ',mode))))
    (hycontrol-make-windows-grid arg)))