From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-priority-faces has no effect - how to define line colors in org-mode? Date: Thu, 27 Sep 2012 02:00:26 -0400 Message-ID: <4499.1348725626@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TH7qk-0003zo-Fw for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 02:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TH7qi-000380-T2 for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 02:45:30 -0400 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:4013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TH7qi-00037w-Nt for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 02:45:28 -0400 In-Reply-To: Message from M of "Thu, 27 Sep 2012 07:14:50 +0200." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: M Cc: emacs orgmode-mailinglist M 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 > > >