emacs-orgmode
[Top][All Lists]
Advanced

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

[O] How to change color of (part of) agenda header


From: Sebastien Vauban
Subject: [O] How to change color of (part of) agenda header
Date: Tue, 05 Aug 2014 23:22:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (windows-nt)

Hello,

I'm trying to get part of the agenda header in another color, here
"TODAY":

--8<---------------cut here---------------start------------->8---
  (add-to-list 'org-agenda-custom-commands
               `("f" "Today"
                 (;; list of all TODO entries with deadline today
                  (tags-todo "DEADLINE=\"<+0d>\""
                             ((org-agenda-overriding-header
                               (concat "DUE " #("TODAY" 0 4 (face (:foreground 
"red")))))
                              (org-agenda-skip-function
                               '(org-agenda-skip-entry-if 'notdeadline)))))
                 ((org-agenda-format-date ""))) t)
--8<---------------cut here---------------end--------------->8---

The goal is to make what's unique and different from the next agenda
blocks very outstanding.

Though, it does not work: text is simply copied, as if text properties
did not exist.

Am I missing something, or writing it in a buggy way?

Best regards,
  Seb

PS- I tried strings with `propertize' as well, with no more success.

-- 
Sebastien Vauban




reply via email to

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