all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: daniela-spit@gmx.it
To: tomas@tuxteam.de
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Setting org-todo-keyword-faces
Date: Fri, 11 Dec 2020 22:45:34 +0100	[thread overview]
Message-ID: <trinity-d18674b8-927e-4b9c-96ec-cfec5669672a-1607723134026@3c-app-mailcom-bs06> (raw)
In-Reply-To: <20201211213344.GA15255@tuxteam.de>



> Sent: Friday, December 11, 2020 at 10:33 PM
> From: tomas@tuxteam.de
> To: daniela-spit@gmx.it
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: Setting org-todo-keyword-faces
>
> On Fri, Dec 11, 2020 at 06:10:03PM +0100, daniela-spit@gmx.it wrote:
> > I would be grateful to know how I could make the following setup
> > more organised.
> >
> > (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"
>
> Hm. For me it's tough to understand what you are after. I
> get from your other mail that there are two sequences in
> there. Their styles aren't "parallel" though.
>
> You want more concise code? The lowest hanging fruit seems
> to be the repeated :weight bold, then.
>
> To try to get a hold on possible symmetries, I rearranged
> things like so (rows are same background, columns same
> foreground):
>
>     | bg \ fg | red      | magenta | black       |
>     |---------+----------+---------+-------------|
>     | red     |          |         | CR-STARTED  |
>     |         |          |         | CR-WAITING  |
>     |         |          |         | CR-FINALISE |
>     |---------+----------+---------+-------------|
>     | magenta |          |         | WAITING     |
>     |         |          |         | FINALISE    |
>     |---------+----------+---------+-------------|
>     | black   | TODO     | STARTED |             |
>     |         | CRITICAL |         |             |
>     |---------+----------+---------+-------------|
>     | orange  |          |         | DONE        |
>     |         |          |         | CR-DONE     |
>
> Of the possible 12 combinations, only 5 are used (the diagonal
> doesn't make much sense, for obvious reasons). Perhaps name those
> five and give them faces? This would depend on whether you're
> planning to fill that table more densely or not.

Table is interesting, have not looks at colour settings that way.

> Surely you might make the list more compact with a function
> or macro roughly doing
>
>   (sty "black" "magenta") -> '(:background "black" :foreground "magenta"
>                                :weight bold)

Yes, using a style of sorts.  I like it.

With two possible sequences, I first have to go through the first, before
I get to the second.  Is that customary or are there other ways?

> ...but I don't know whether you're after this, either.
>
> In a nutshell, I'm not sure about what you're up to.
>
> Cheers
>  - t
>



  reply	other threads:[~2020-12-11 21:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11 17:10 Setting org-todo-keyword-faces daniela-spit
2020-12-11 18:56 ` TRS-80
2020-12-11 20:01   ` daniela-spit
2020-12-11 21:33 ` tomas
2020-12-11 21:45   ` daniela-spit [this message]
2020-12-11 21:56     ` tomas

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

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

  git send-email \
    --in-reply-to=trinity-d18674b8-927e-4b9c-96ec-cfec5669672a-1607723134026@3c-app-mailcom-bs06 \
    --to=daniela-spit@gmx.it \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tomas@tuxteam.de \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.