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

White margin in indented org-mode files #43

Open
logc opened this issue Jun 4, 2024 · 7 comments
Open

White margin in indented org-mode files #43

logc opened this issue Jun 4, 2024 · 7 comments

Comments

@logc
Copy link

logc commented Jun 4, 2024

Description

On using ef-themes, all Org files started to show a white left margin in all places where text is indented, such as headings and body.

My configuration for using ef-themes is this:

(use-package ef-themes
  :config
  (setq ef-themes-mixed-fonts t)
  :init
  (ef-themes-load-random 'dark))

My (relevant) configuration for org-mode, with only one variable set, org-startup-indented. Commenting out this variable solves the issue:

(use-package org
  :config
  (setq
   ;; org-startup-truncated nil
   org-startup-indented t
   ;; org-startup-folded t
   )
  ;; (setq org-hide-leading-stars t)
  )

However, the problem seems to also happen when the org-mode file uses the option #+STARTUP: indent. Both the variable and the startup option are associated to org-indent-mode, a minor mode of org-mode.

This affects all ef-themes, but it is much more noticeable in a dark theme.

Screenshots

Effect of org-startup-indented

Screenshot 2024-06-04 at 13 36 58

Effect of #+STARTUP: indent

Screenshot 2024-06-04 at 13 45 26

Effect on a light theme

Screenshot 2024-06-04 at 13 56 07
@protesilaos
Copy link
Owner

protesilaos commented Jun 4, 2024 via email

@logc
Copy link
Author

logc commented Jun 4, 2024

No, that does not seem to be the case. If I grep through my whole configuration looking for org-indent, the result is 0 hits.

$ cd .config/emacs
$ rg org-indent
(no output)

@logc
Copy link
Author

logc commented Jun 4, 2024

BTW, thank you very much for your work on these themes! I am reporting the issue in case anyone else has found similar problems ...

@protesilaos
Copy link
Owner

protesilaos commented Jun 10, 2024 via email

@logc
Copy link
Author

logc commented Jun 10, 2024

Face: org-indent (sample) (customize this face)

Documentation:
Face for outline indentation.
The default is to make it look like whitespace.  But you may find it
useful to make it ever so slightly different.

Defined in ‘org-indent.el’.


           Family: unspecified
          Foundry: unspecified
            Width: unspecified
           Height: unspecified
           Weight: unspecified
            Slant: unspecified
       Foreground: unspecified
DistantForeground: unspecified
       Background: unspecified
        Underline: unspecified
         Overline: unspecified
   Strike-through: unspecified
              Box: unspecified
          Inverse: unspecified
          Stipple: unspecified
             Font: unspecified
          Fontset: unspecified
           Extend: unspecified
          Inherit: (fixed-pitch org-hide)

@protesilaos
Copy link
Owner

protesilaos commented Jun 11, 2024 via email

@logc
Copy link
Author

logc commented Jun 11, 2024

Aha! apparently it's org-hide

Face: org-hide (sample) (customize this face)

Documentation:
Face used to hide leading stars in headlines.
The foreground color of this face should be equal to the background
color of the frame.

Defined in ‘org-faces.el’.


           Family: unspecified
          Foundry: unspecified
            Width: unspecified
           Height: unspecified
           Weight: unspecified
            Slant: unspecified
       Foreground: #000000
DistantForeground: unspecified
       Background: unspecified
        Underline: unspecified
         Overline: unspecified
   Strike-through: unspecified
              Box: unspecified
          Inverse: unspecified
          Stipple: unspecified
             Font: unspecified
          Fontset: unspecified
           Extend: unspecified
          Inherit: unspecified

There is an associated configuration org-hide-leading-stars that I am setting to t. That is the only mention of org-hide in my 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