From: ded-law@ddoherty.net (Daniel E. Doherty)
To: Ashfaq <quazi.ashfaq@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: I can't make work 'startup hidestars'
Date: Wed, 05 Dec 2012 07:40:52 -0600 [thread overview]
Message-ID: <87y5hcipln.fsf@ddoherty.net> (raw)
In-Reply-To: <CAMih+LGzK7hQbvjZOKMnnyhsOYtgV_3xw9S3vYsdxOZbOrTFqw@mail.gmail.com> (Ashfaq's message of "Sat, 25 Aug 2012 16:08:44 +0600")
If it helps, I have the following in my init file to make sure the hidden stars stay hidden:
#+begin_src emacs-lisp
(defun ded-set-org-hide ()
"Make sure the background and foreground colors of the org-hide face
matches the background of the default face."
(interactive)
(when (featurep 'org)
(set-face-attribute 'org-hide nil
:foreground
(face-attribute 'default :background))
(set-face-attribute 'org-hide nil
:background
(face-attribute 'default :background))))
(add-hook 'after-init-hook 'ded-set-org-hide)
(add-hook 'org-ctrl-c-ctrl-c-hook 'ded-set-org-hide)
#+end_src
This works fine, but has to be manually re-run if you load a different custom theme.
--
====================================================
Daniel E. Doherty
Law Offices of Daniel E. Doherty
ded-law@ddoherty.net
prev parent reply other threads:[~2012-12-05 13:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-25 10:08 I can't make work 'startup hidestars' Ashfaq
2012-08-25 10:15 ` Bastien
2012-08-25 12:44 ` Ashfaq
2012-08-25 13:03 ` Charles Philip Chan
2012-08-25 15:18 ` Ashfaq
2012-08-25 16:31 ` Charles Philip Chan
2012-08-25 19:50 ` Ashfaq
2012-08-26 1:56 ` Charles Philip Chan
2012-08-26 17:56 ` Ashfaq
2012-12-05 13:40 ` Daniel E. Doherty [this message]
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=87y5hcipln.fsf@ddoherty.net \
--to=ded-law@ddoherty.net \
--cc=emacs-orgmode@gnu.org \
--cc=quazi.ashfaq@gmail.com \
/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).