emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-priority-faces has no effect - how to define line colors in


From: Nick Dokos
Subject: Re: [O] org-priority-faces has no effect - how to define line colors in org-mode?
Date: Thu, 27 Sep 2012 02:00:26 -0400

M <address@hidden> wrote:

> 
> My problem is: my agenda is very long and very cluttered.
> I'd like to visually emphasize all lines
> A) with priority A or deadline today
> B) priority B and scheduled today or before today
>  
> 
> I'm using org-mode 7.8.11 with Emacs 24.1.1 and I want to change the colors
> used to display agenda lines, so that e. g. all lines with priority "A" are
> shown in red bold font.
> 
> I tried to change the variable org-priority-faces but it has no effect:
> 
>  org-priority-faces is a variable defined in `org-faces.el'.
>  Its value is (("A" :foreground "#E01B4C" :weight bold)
>  ("B" :foreground "#1739BF")
>  ("#C" :foreground "#575757"))
> 
> What am I doing wrong? Could other configurations overwrite this new
> setting?
> 
> I tried a lot of things, but I must be doing something wrong with the
> org-priority-faces values.
> 

You should probably use customize to set the value. Setting it by hand
is possible (but not advisable) in this case, but you have to pay
attention to some details.  The docstring of the variable says

,----
| This is a list of cons cells, with priority character in the car
| and faces in the cdr.  The face can be a symbol, a color as
| as a string, or a property list of attributes, like
|     (:foreground "blue" :weight bold :underline t).
`----

so you need to set it with something like this:

--8<---------------cut here---------------start------------->8---
(setq org-priority-faces '((?A . (:foreground "red" :weight "bold"))
                           (?B . (:foreground "yellow"))
                           (?C . (:foreground "green"))))
--8<---------------cut here---------------end--------------->8---

Nick

> Martin
> 
> 
> 



reply via email to

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