help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

width of line numbers


From: Joost Kremers
Subject: width of line numbers
Date: Tue, 22 Dec 2020 10:23:26 +0100
User-agent: mu4e 1.5.7; emacs 27.1.50

Hi all,

I was wondering if there's a way to find out the width of the current line
number display (with `display-line-number-mode`, not `linum-mode`).

Or, alternatively, get the window width without the line number. Both
`window-body-width` and `window-total-width` (why are there two functions, BTW?)
report the width of the text area without "dividers, scrollbars, margins,
fringes", but the line number display is still included.

TIA


-- 
Joost Kremers
Life has its moments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]