emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Faces for deadlines?
@ 2010-04-29 10:06 Sébastien Vauban
  2010-05-03  9:15 ` Sébastien Vauban
  0 siblings, 1 reply; 4+ messages in thread
From: Sébastien Vauban @ 2010-04-29 10:06 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hello,

I'm trying to customize the display of deadlines.

I currently have:

--8<---------------cut here---------------start------------->8---
(org-upcoming-deadline ((t (:foreground "white" :background "rgb:E9/A3/6A" :weight bold))))
(org-warning ((t (:foreground "white" :background "rgb:D8/00/00" :weight bold))))
--8<---------------cut here---------------end--------------->8---

in my color-theme, but I would like to have (for example):

- red for actions due in the past ("In -2 d.")

- orange for actions due today ("Deadline")

- green for actions due in the next coming days ("In 3 d.")
  (DEADLINE <= `org-agenda-skip-deadline-prewarning-if-scheduled')

- blue for longer-term deadlines ("In 13 d.")
  (DEADLINE > `org-agenda-skip-deadline-prewarning-if-scheduled' and
   DEADLINE <= `org-deadline-warning-days')

Is this possible?

Best regards,
  Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Faces for deadlines?
  2010-04-29 10:06 Faces for deadlines? Sébastien Vauban
@ 2010-05-03  9:15 ` Sébastien Vauban
  2010-05-03  9:52   ` Mikael Fornius
  0 siblings, 1 reply; 4+ messages in thread
From: Sébastien Vauban @ 2010-05-03  9:15 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi,

Can I bump up this thread?

Best regards,
  Seb

Sébastien Vauban wrote:
> Hello,
>
> I'm trying to customize the display of deadlines.
>
> I currently have:
>
> (org-upcoming-deadline ((t (:foreground "white" :background "rgb:E9/A3/6A" :weight bold))))
> (org-warning ((t (:foreground "white" :background "rgb:D8/00/00" :weight bold))))
>
> in my color-theme, but I would like to have (for example):
>
> - red for actions due in the past ("In -2 d.")
>
> - orange for actions due today ("Deadline")
>
> - green for actions due in the next coming days ("In 3 d.")
>   (DEADLINE <= `org-agenda-skip-deadline-prewarning-if-scheduled')
>
> - blue for longer-term deadlines ("In 13 d.")
>   (DEADLINE > `org-agenda-skip-deadline-prewarning-if-scheduled' and
>    DEADLINE <= `org-deadline-warning-days')
>
> Is this possible?

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Faces for deadlines?
  2010-05-03  9:15 ` Sébastien Vauban
@ 2010-05-03  9:52   ` Mikael Fornius
  2010-05-04  9:23     ` Sébastien Vauban
  0 siblings, 1 reply; 4+ messages in thread
From: Mikael Fornius @ 2010-05-03  9:52 UTC (permalink / raw)
  To: emacs-orgmode


I have not tried it but I found this variable:

org-agenda-deadline-faces

"Faces for showing deadlines in the agenda."

maybe it solves your problem?

-- 
Mikael Fornius

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Faces for deadlines?
  2010-05-03  9:52   ` Mikael Fornius
@ 2010-05-04  9:23     ` Sébastien Vauban
  0 siblings, 0 replies; 4+ messages in thread
From: Sébastien Vauban @ 2010-05-04  9:23 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Hi Mikael,

Mikael Fornius wrote:
> I have not tried it but I found this variable:
>
> org-agenda-deadline-faces
>
> "Faces for showing deadlines in the agenda."
>
> maybe it solves your problem?

Excellent hint...


I've customized it that way:

--8<---------------cut here---------------start------------->8---
    (setq org-agenda-deadline-faces
          '((1.1 . sva-org-deadline-yesterday)
            (1.0 . sva-org-deadline-today)
            (0.5 . sva-org-deadline-tomorrow)
            (0.0 . sva-org-deadline-later)))
--8<---------------cut here---------------end--------------->8---

and have added the following colors in my theme:

--8<---------------cut here---------------start------------->8---
     (sva-org-deadline-yesterday ((t (:foreground "white" :background "rgb:D8/00/00" :weight bold))))
     (sva-org-deadline-today ((t (:foreground "white" :background "rgb:E9/A3/6A" :weight bold))))
     (sva-org-deadline-tomorrow ((t (:foreground "black" :background "#B4F1B3" :weight bold))))
     (sva-org-deadline-later ((t (:foreground "black" :background "#AACAFC"))))
--8<---------------cut here---------------end--------------->8---

And that quite works well following my needs.

It's just a bit tricky to understand and correctly setup the "fractions"
above, in the `org-agenda-deadline-faces'... It would be easy, and would make
more sense, if we could directly enter "days specifications" there, instead of
fractions (for example, "0" for today, "-1" for yesterday, and so on).

But it works. And I thank you for your help.

Best regards,
  Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-04  9:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-29 10:06 Faces for deadlines? Sébastien Vauban
2010-05-03  9:15 ` Sébastien Vauban
2010-05-03  9:52   ` Mikael Fornius
2010-05-04  9:23     ` Sébastien Vauban

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