all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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
Date: Fri, 11 Dec 2020 22:33:44 +0100	[thread overview]
Message-ID: <20201211213344.GA15255@tuxteam.de> (raw)
In-Reply-To: <trinity-e73997aa-b016-4ec2-86f3-719255ce7f59-1607706603609@3c-app-mailcom-bs06>

[-- Attachment #1: Type: text/plain, Size: 2954 bytes --]

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.

Surely you might make the list more compact with a function
or macro roughly doing

  (sty "black" "magenta") -> '(:background "black" :foreground "magenta"
                               :weight bold)

...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

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2020-12-11 21:33 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 [this message]
2020-12-11 21:45   ` daniela-spit
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=20201211213344.GA15255@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=daniela-spit@gmx.it \
    --cc=help-gnu-emacs@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 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.