-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change line spacing but vertically centered? #10502
Comments
This SO question discusses this issue: Adding text properties seems to be the closest solution:
When I just tested it, then the line spacing/height doesn't change on the last line. Maybe it only works if there's a line below. The answer here: states that:
And suggests:
So if your up for the challenge 😄 |
I've found that one too, and as you noticed yourself, it works - but basically just once. :D
I wouldn't even know where to start - especially being (as of now) completely unfamiliar with lisp that's beyond configuring spacemacs. 😅 |
This issue popped up in the gitter chat, so I'm just letting you know about the (setq default-text-properties '(line-spacing 0.25 line-height 1.25)) But that also affects the minibuffer, so maybe a better solution is: (defun set-bigger-spacing ()
(setq-local default-text-properties '(line-spacing 0.25 line-height 1.25)))
(add-hook 'text-mode-hook 'set-bigger-spacing)
(add-hook 'prog-mode-hook 'set-bigger-spacing) Anyway, this isn't really Spacemacs related, so I'm closing the issue. You're welcome to add the info to one of the SO questions - those threads usually have more visibility than Spacemacs issues and it will help more Emacs users. |
there's a vertical-centering patch that may or may not be merged into emacs master (not sure about the current status): https://www.reddit.com/r/emacs/comments/cxywtc/i_wrote_a_patch_to_vertically_center_the_line/ |
I don't like having the lines that close to each other, so I found
(setq line-spacing 0.25)
which has the desired effect, with one little detail missing: the text is aligned to the top:Is there a way to get that line vertically centered too?
The text was updated successfully, but these errors were encountered: