all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: M <Elwood151@web.de>
Cc: emacs orgmode-mailinglist <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <4499.1348725626@alphaville> (raw)
In-Reply-To: Message from M <Elwood151@web.de> of "Thu, 27 Sep 2012 07:14:50 +0200." <CC89AD6A.11F57%Elwood151@web.de>

M <Elwood151@web.de> 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	other threads:[~2012-09-27  6:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27  5:14 org-priority-faces has no effect - how to define line colors in org-mode? M
2012-09-27  6:00 ` Nick Dokos [this message]
2012-09-27  7:05   ` elwood151
2012-09-27  7:24     ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4499.1348725626@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=Elwood151@web.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.