unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: 44708@debbugs.gnu.org
Subject: bug#44708: Background Colour on State, bleeds into Headline Numbering
Date: Tue, 17 Nov 2020 17:37:45 +0100	[thread overview]
Message-ID: <trinity-e62c6f85-73d9-4b27-bc7c-ad4726df9959-1605631065424@3c-app-mailcom-bs03> (raw)

I have set headline numbering and added org-todo-keywords
with background highlighting using org-todo-keyword-faces.

;; Number Headlines
(setq org-startup-numerated t)

;; Sets Todo Keywords and Colour

(setq org-todo-keywords
   '( (seqeunce "TODO" "STARTED" "WAITING" "FINALISE" "|" "DONE")
      (sequence "CRITICAL" "CR-STARTED" "CR-WAITING" "CR-FINALISE"
                "|" "CR-DONE")  ))

(setq org-todo-keyword-faces
   '( ("TODO" . (:background "black" :foreground "red" :weight bold))
      ("STARTED" . (:background "black" :foreground "magenta" :weight bold))
      ("WAITING" . (:background "magenta" :foreground "black" :weight bold))
      ("FINALISE" . (:background "magenta" :foreground "black" :weight bold))
      ("DONE" . (:background "orange" :foreground "black" :weight bold))
      ("CRITICAL" . (:background "blak" :foreground "red" :weight bold))
      ("CR-STARTED" . (:background "red" :foreground "black" :weight bold))
      ("CR-WAITING" . (:background "red" :foreground "black" :weight bold))
      ("CR-FINALISE" . (:background "red" :foreground "black" :weight bold))
      ("CR-DONE" . (:background "orange" :foreground "black" :weight bold)) ))

I then write a headline with a state

* 1 Test

** 1.1 [DONE] Task

The problem is that Emacs will use the background colour for DONE to set
the background colour for the Headline Numbering as well, not to the
state DONE only.

---------------------
Christopher Dimech
General Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy






                 reply	other threads:[~2020-11-17 16:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-e62c6f85-73d9-4b27-bc7c-ad4726df9959-1605631065424@3c-app-mailcom-bs03 \
    --to=dimech@gmx.com \
    --cc=44708@debbugs.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.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).