help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting org-todo-keyword-faces


From: daniela-spit
Subject: Re: Setting org-todo-keyword-faces
Date: Fri, 11 Dec 2020 22:45:34 +0100


> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]