reddit / emacs

org-indent-mode adds extra vertical white space -- is this expected behavior? How do I remove it?

JeremyHilaryBoob · 2022-04-06 01:00
**UPDATE (2022/04/23): org-mode 9.5.3 has resolved these issues** The emacs package in my distro has recently been updated from 27.2 (org-mode 9.4.4.) to 28.1 (org-mode 9.5.2). In this newer version, `org-indent-mode` adds a lot of vertical white space in between lines of text. I personally don't like the looks of this but more importantly it's wasting a lot of space on my already cramped laptop screen. I notice that it's not as pronounced when using other fonts but I don't want to change from Terminus. The screenshots are captioned with the emacs and org-mode versions and whether `org-indent-mode` is on or off. Note that the only change from vanilla emacs is setting the default font to Terminus. Is this expected behavior? If so, where would I configure this to behave the way it did in 27.2 with org-mode 9.4.4? Also, I'm not a fan of the way the `STARTUP` keyword face is so different from the rest of the buffer. Is there one variable that I can set to make org-mode use the default font everywhere? Or do I have to change each of the dozens of faces individually? ​ [Emacs 27.2 \(org-mode 9.4.4\) org-indent-mode off](https://preview.redd.it/ysfs3pmr5tr81.png?width=672&format=png&auto=webp&s=aeeb338fb7271a06d361a6e1049b89279e679b16) [Emacs 27.2 \(org-mode 9.4.4\) org-indent-mode on](https://preview.redd.it/m6dd11nr5tr81.png?width=672&format=png&auto=webp&s=18644a987b83d53c1ba8c2454feb17da0185975c) [Emacs 28.1 \(org-mode 9.5.2\) org-indent-mode off](https://preview.redd.it/2rhsy18t5tr81.png?width=672&format=png&auto=webp&s=421af5fb8fdea4df7bb264fca922bfb30566a45b) [Emacs 28.1 \(org-mode 9.5.2\) org-indent-mode on](https://preview.redd.it/4i60ez7t5tr81.png?width=672&format=png&auto=webp&s=f178eca298a3cbf82f25f0e30643a10454d897aa)
unixbhaskar · 2022-04-06 01:04
Bring up M-x and then search for "whitespace-cleanup" ...and you probably get more options too related to whitespace.
JeremyHilaryBoob · 2022-04-06 01:15
Thanks, but these all look like they are dealing with horizontal whitespace rather than vertical whitespace. It looks to me like org-indent-mode is changing the line-height somehow.
worthless-trash · 2022-04-07 22:23
Is this happening on all fonts or just this font ?
JeremyHilaryBoob · 2022-04-08 08:18
It happened with the default font but it wasn't nearly as noticeable as it is with Terminus. I just tried a couple more randomly... It doesn't happen with Noto Sans Mono Regular but it does happen with Liberation Mono Regular and Inconsolata Regular.
worthless-trash · 2022-04-08 10:30
Edit: sorry, I had responded to the wrong post.