Skip to content
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

Preserve line-spacing #37

Open
zacque0 opened this issue Feb 28, 2022 · 2 comments
Open

Preserve line-spacing #37

zacque0 opened this issue Feb 28, 2022 · 2 comments

Comments

@zacque0
Copy link

zacque0 commented Feb 28, 2022

Hi,

I've set a custom line-spacing for Org-mode. And when my point is inside the src-blocks, the line-spacing resets itself. To see it in action:
simplescreenrecorder-2022-02-28_08 58 42

Thanks!

About Emacs:
GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0)

@vspinu
Copy link
Contributor

vspinu commented Feb 28, 2022

How do you set the spacing more concretely? Such things normally have to be syncronized across all buffers. Or applied to each inner mode span individually.

@zacque0
Copy link
Author

zacque0 commented Mar 1, 2022

Such things normally have to be syncronized across all buffers. Or applied to each inner mode span individually.

Ah, I wasn't aware of it. Here it is, I set it as a hook to Org-mode:

(use-package org
  :ensure nil
  :config
  (defun jh/toggle-org-mode-writing-configuration ()
    (interactive)
    (buffer-face-set '(:family "IBM Plex Mono"))
    (setq header-line-format " ")
    (setq line-spacing 0.1)   <---------- HERE
    (setq left-margin-width 2)
    (setq right-margin-width 2)
    (set-window-buffer nil (current-buffer)))
  (add-hook 'org-mode-hook 'jh/toggle-org-mode-writing-configuration))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants