Variable: window-min-width

window-min-width is a customizable variable defined in window.el.gz.

Value

10

Documentation

The minimum total width, in columns, of any window.

The value has to accommodate two text columns as well as margins, fringes, a scroll bar and a right divider, if present. A value less than window-safe-min-width is ignored. The value of this variable is honored when windows are resized or split.

Applications should never rebind this variable. To resize a window to a width less than the one specified here, an application should instead call window-resize with a non-nil IGNORE argument. In order to have split-window make a window narrower, explicitly specify the SIZE argument of that function.

This variable was added, or its default value changed, in Emacs 24.1.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/window.el.gz
(defcustom window-min-width 10
  "The minimum total width, in columns, of any window.
The value has to accommodate two text columns as well as margins,
fringes, a scroll bar and a right divider, if present.  A value
less than `window-safe-min-width' is ignored.  The value of this
variable is honored when windows are resized or split.

Applications should never rebind this variable.  To resize a
window to a width less than the one specified here, an
application should instead call `window-resize' with a non-nil
IGNORE argument.  In order to have `split-window' make a window
narrower, explicitly specify the SIZE argument of that function."
  :type 'natnum
  :version "24.1"
  :group 'windows)