From: Johannes <code@schauderbasis.de>
To: emacs-orgmode@gnu.org
Subject: org-hide in terminal
Date: Sat, 11 Feb 2017 15:12:42 +0100 [thread overview]
Message-ID: <4e037c49-8204-ce99-9791-7ec0233658a7@schauderbasis.de> (raw)
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
next reply other threads:[~2017-02-11 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-11 14:12 Johannes [this message]
2017-05-31 19:42 ` org-hide in terminal Michael Brand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4e037c49-8204-ce99-9791-7ec0233658a7@schauderbasis.de \
--to=code@schauderbasis.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).