emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-hide in terminal


From: Johannes
Subject: [O] org-hide in terminal
Date: Sat, 11 Feb 2017 15:12:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

Hello,

With "org-hide-leading-stars" set to t orgmode tries to hide stars by
using the "org-hide" face. This is documented with: "The foreground
color of this face should be equal to the background
color of the frame." and in the org manual in section Clean-view we find
"Because Org makes the font color same as the background color to hide
to stars, sometimes org-hide face may need tweaking to get the effect
right. For some black and white combinations, grey90 on a white
background might mask the stars better". As far as I can tell (which
might be wront) it just assumes default colors "white" or "black", which
might not be accurate.

I think this is a bad solution for the following reasons.

- It doesn't work well if emacs runs in a terminal (often the stars just
get a grey background)
- It shows the stars when we mark them (this might or might not be a
good thing)
- People who use the same config in multiple environments (other
terminals and colors) will have to write some if-else code to get this
right.
- People who change their terminal colors get problems.


Possible solutions I can think of are:
a) Somhow make the existion solution work for terminals. I thought I
could simply set org-hides forground to the backgrounf-value of the face
"default", but somehow it didn't work out and I ended up with some sort
of grey (which is not my background).
b) emacs could have a text property, similar to "invisible", which hides
text but still lets it occupy the space. I don't know how it work
internaly, though. This is probably the best solution if the problem of
hiding text occurs more often. I was told this was already discussed on
emcas-devel, but I couldn't find it there.
c) hide the leading stars behind spaces. I have a working prototype
which works quite well. It uses "org-bullets" and "compose-region". It
is not 100% clean though, since there still is a character which might
be visible when using some minor mode.

I am very new to emacs-lsip (and mailing lists) so I hope this is how it
is done.
Johannes Lippmann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]