[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: width of line numbers
From: |
Emanuel Berg |
Subject: |
Re: width of line numbers |
Date: |
Tue, 22 Dec 2020 11:06:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Joost Kremers wrote:
> 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`).
A hard to spot typo, should be `display-line-numbers-mode'.
> Or, alternatively, get the window width without the
> line number.
(defun display-width ()
(interactive)
(message "%s" (- (window-width) (line-number-display-width))) )
> `window-body-width` and `window-total-width` (why are there
> two functions, BTW?)
Two functions? What about `window-width'? :P
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal