micahacobb · 2022-07-22 23:26
For some reason, a few months ago the line spacing in Org Mode has increased. It's the line spacing between display lines, not merely between paragraphs or headings. The line spacing in my org-mode files has increased to 1.5 or 2 (just guessing).
The variable "line-spacing" is nil. Actually setting it doesn't help.
If I open a non-org-mode text file in emacs, the line spacing is fine.
I discovered that the issue comes from org-indent-mode. But I also don't know why org-indent-mode would cause this. Does anyone have any ideas of what setting I can change?
UPDATE: I was able to fix this by following the solution at the link provided below by JDRiverRun.
tmting · 2022-07-23 02:42
Can you replicate it with emacs -Q? You might need to identify something in your config that's messing with line spacing.
micahacobb · 2022-07-23 03:22
It doesn't happen with emacs -Q.
Yeah, I'm looking throughout my config to see if there is anything that could have caused it.
It \*seems\* like it began (months ago) when I updated packages.
folcred · 2022-07-23 03:36
I suggest to also check your theme file(s), there may be something the author changed that's affecting the spacing.
c256 · 2022-07-23 04:15
The font setting can impact line spacing; perhaps org-indent-mode is adding some font with a larger decender area? What happens if you manually force the buffer to something like text mode? (M-x text-mode RET or M-x fundamental-mode RET)
micahacobb · 2022-07-23 04:46
the org-mode syntax highlighting is gone, but the spacing still remains. Only goes away when I disable org-indent-mode
_viz_ · 2022-07-23 07:59
Line spacing can also be changed via text properties. Does the newline character have a line-spacing property?
tmting · 2022-07-23 09:54
I suggest that you backup your config and then test it all. Comment some section, restart emacs, see if it's solved. Comment some more, restart, see if it works... Keep going until you find the culprit, which then will be much easier to debug
JDRiverRun · 2022-07-23 11:50
Found a similar issue in org-modern-indent (which works with org-indent). org-meta-line defaults to fixed-pitch, which hard-codes additional line spacing. See this for a solution to try:
https://github.com/jdtsmith/org-modern-indent/issues/1#issuecomment-1153065940
micahacobb · 2022-07-23 12:53
Awesome. This fixed it. Thanks so much!