[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.
- How do I get the window height in lines, taking in account line-spacing?, Dmitry Gutov, 2014/08/04
- Re: How do I get the window height in lines, taking in account line-spacing?, Dmitry, 2014/08/04
- Re: How do I get the window height in lines, taking in account line-spacing?, Dmitry, 2014/08/04
- Re: How do I get the window height in lines, taking in account line-spacing?, Michael Heerdegen, 2014/08/05
- Re: How do I get the window height in lines, taking in account line-spacing?, Dmitry, 2014/08/05
- Re: How do I get the window height in lines, taking in account line-spacing?, Michael Heerdegen, 2014/08/05
- Re: How do I get the window height in lines, taking in account line-spacing?, Dmitry, 2014/08/06
- Re: How do I get the window height in lines, taking in account line-spacing?, Eli Zaretskii, 2014/08/06