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

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

Re: How do I get the window height in lines, taking in account line-spac


From: Dmitry
Subject: Re: How do I get the window height in lines, taking in account line-spacing?
Date: Tue, 05 Aug 2014 04:45:18 +0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> In my efforts to get civilized scrolling [1], I wrote
> something that might fit - should fit, if it doesn't, I
> want to now :)

Nope, this doesn't take line-spacing into account either.

Try this: (setq-default line-spacing 0.2)

And then M-x linum-mode, so that you can see the number of lines
yourself.  (get-window-lines) will return a value larger than the amount
of lines that is visible in a window.



reply via email to

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