Variable: magit-section-disable-line-numbers

magit-section-disable-line-numbers is a customizable variable defined in magit-section.el.

Value

t

Documentation

In Magit buffers, whether to disable modes that display line numbers.

Some users who turn on global-display-line-numbers-mode(var)/global-display-line-numbers-mode(fun) (or global-nlinum-mode or global-linum-mode(var)/global-linum-mode(fun)) expect line numbers to be displayed everywhere except in Magit buffers. Other users do not expect Magit buffers to be treated differently. At least in theory users in the first group should not use the global mode, but that ship has sailed, thus this option.

This variable was added, or its default value changed, in magit-section version 3.0.0.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-section-20260330.1102/magit-section.el
(defcustom magit-section-disable-line-numbers t
  "In Magit buffers, whether to disable modes that display line numbers.

Some users who turn on `global-display-line-numbers-mode' (or
`global-nlinum-mode' or `global-linum-mode') expect line numbers
to be displayed everywhere except in Magit buffers.  Other users
do not expect Magit buffers to be treated differently.  At least
in theory users in the first group should not use the global mode,
but that ship has sailed, thus this option."
  :package-version '(magit-section . "3.0.0")
  :group 'magit-section
  :type 'boolean)