opened 08:03PM - 11 Jun 21 UTC
closed 07:21PM - 08 Jul 21 UTC
is:bug
status:resolved
core
re:defaults
### What did you expect to happen?
I set line spacing in org mode via:
```em…acs-lisp
(add-hook! 'org-mode-hook
(setq-local line-spacing 0.45))
```
It should change the line spacing, while it does no change anything else.
### What actually happened?
<img width="803" alt="image" src="https://user-images.githubusercontent.com/26316540/121741746-ee97d880-cacc-11eb-9c34-cbd58789a510.png">
As shown in the figure, the underline of the link is far away from the text. This is strange.
### Describe your attempts to resolve the issue
I first tried whether this is the default behavior of emacs. I did
```
emacs -Q --eval '(progn
(switch-to-buffer "*.org")
(org-mode)
(setq-local line-spacing 0.45)
(insert "[[link]]"))'
```
The result is

This is exactly what I expected: the underline is close to the text and the upper end of cursor is at the same height of the text. The line spacing is larger, and the lower end of the cursor is extended. So the default behavior of emacs should be correct. The problem must comes from some configurations.
Then I tried to delete all my personal doom config and `.emacs.d`. I tried to use the default setting of doom, with only the line spacing as my personal config. But the result is the same.
### Steps to reproduce
Simply add the line spacing config into `.doom.d/config.el` and you will see it.
### System Information
https://pastebin.com/TZxdinGQ