[Top][All Lists]

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

Re: How to get the line offset in `display-line-numbers-mode'?

From: Bastien
Subject: Re: How to get the line offset in `display-line-numbers-mode'?
Date: Fri, 31 Jan 2020 21:28:07 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi Mattias,

Mattias EngdegÄrd <address@hidden> writes:

> 31 jan. 2020 kl. 19.14 skrev Bastien <address@hidden>:
>> Assuming display-line-numbers-mode is turned on, how can I get
>> the number of spaces this mode uses for displaying numbers?
> It may not be the right way, but I ended up using
>  (round (line-number-display-width 'columns))

Very nice, thanks a lot!


reply via email to

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