From mboxrd@z Thu Jan 1 00:00:00 1970 From: elwood151@web.de Subject: Re: org-priority-faces has no effect - how to define line colors in org-mode? Date: Thu, 27 Sep 2012 09:05:11 +0200 (CEST) Message-ID: References: , <4499.1348725626@alphaville> Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TH89u-0000mg-Es for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 03:05:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TH89o-0002QZ-KQ for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 03:05:18 -0400 Received: from mout.web.de ([212.227.15.3]:50914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TH89o-0002PO-BP for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 03:05:12 -0400 In-Reply-To: <4499.1348725626@alphaville> 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: nicholas.dokos@hp.com Cc: emacs orgmode-mailinglist
Thanks=20a=20lot=20for=20your=20help!

=
I=20originally=20defined=20the=20variable=20in=20the=20customize= =20interface,=20but=20it=20seems=20that=20I=20entered=20the=20wrong=20chara= cters...
If=20I=20copy=20your=20code=20in=20the=20scratch=20= buffer=20and=20evaluate=20it,=20it=20works=20and=20the=20agenda=20is=20form= atted=20as=20defined.=20:-)


= Why=20Do=20I=20need=20to=20type=20'?A'=20for=20priority=20'A= 9;=20?

A=20little=20remark:=20the=20bold=20face=20= has=20to=20be=20entered=20without=20double=20quotes:
':w= eight=20"bold"'=20has=20no=20effect,=20but=20':weight=20b= old'=20works=20well.

(setq=20org-priorit= y-faces=20'((?A=20.=20(:foreground=20"red"=20:weight=20bold))=
(?B=20.=20(:foreground=20"yellow"))
(?C=20.=20(:foregrou= nd=20"green"))))

This=20syntax=20i= s=20quite=20confusing=20for=20me=20
-=20is=20there=20a=20tut= orial=20anywhere=20which=20explains=20how=20to=20do=20such=20customizations= =20
-=20and=20what=20wildcards=20can/have=20to=20be=20used
-=20and=20what=20"car"=20and=20"cdr"=20an= d=20"cons"=20mean?

Kind=20regards<= br/>

Martin

= =20=20=20=20=20=20=20=20=20=20=20= =20Gesendet: Donnerstag,=2027.=20September=202012=20um=2008:00= =20Uhr
=20=20=20=20=20=20=20=20Von: "Nick=20Dokos"= ;=20<nicholas.dokos@hp.com>
=20=20=20=20=20=20=20=20An:&nb= sp;M=20<Elwood151@web.de>
=20=20=20=20=20=20=20=20Cc: = ;"emacs=20orgmode-mailinglist"=20<emacs-orgmode@gnu.org>=20=20=20=20=20=20=20=20Betreff: Re:=20[O]=20org-priority-fac= es=20has=20no=20effect=20-=20how=20to=20define=20line=20colors=20in=20org-m= ode?=20=20=20=20
=20=20=20=20=20= =20=20=20=20=20=20=20M=20<Elwood151@web.de>=20wrote:

>=20=
(...)
>=20I'm=20using=20org-mode=207.8.11=20with=20Emacs=20= 24.1.1=20and=20I=20want=20to=20change=20the=20colors
>=20used=20to= =20display=20agenda=20lines,=20so=20that=20e.=20g.=20all=20lines=20with=20p= riority=20"A"=20are
>=20shown=20in=20red=20bold=20font.>=20
>=20I=20tried=20to=20change=20the=20variable=20org-priorit= y-faces=20but=20it=20has=20no=20effect:
>=20
>=20=20org-prior= ity-faces=20is=20a=20variable=20defined=20in=20`org-faces.el'.
= >=20=20Its=20value=20is=20(("A"=20:foreground=20"#E01B4C&= quot;=20:weight=20bold)
>=20=20("B"=20:foreground=20"= #1739BF")
>=20=20("#C"=20:foreground=20"#575757&= quot;))
>=20
>=20What=20am=20I=20doing=20wrong?=20Could=20oth= er=20configurations=20overwrite=20this=20new
>=20setting?
>= =20
>=20I=20tried=20a=20lot=20of=20things,=20but=20I=20must=20be=20d= oing=20something=20wrong=20with=20the
>=20org-priority-faces=20value= s.
>=20

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

,----
|=20This=20is=20a=20list=20of=20cons=20cells,=20wi= th=20priority=20character=20in=20the=20car
|=20and=20faces=20in=20= the=20cdr.=20=20The=20face=20can=20be=20a=20symbol,=20a=20color=20as
&#= 124;=20as=20a=20string,=20or=20a=20property=20list=20of=20attributes,=20lik= e
|=20=20=20=20=20(:foreground=20"blue"=20:weight=20bold= =20:underline=20t).
`----

so=20you=20need=20to=20set=20it= =20with=20something=20like=20this:

--8<---------------cut=20her= e---------------start------------->8---
(setq=20org-priority-faces= =20'((?A=20.=20(:foreground=20"red"=20:weight=20"bold&qu= ot;))
=09=09=09=20=20=20(?B=20.=20(:foreground=20"yellow"))=09=09=09=20=20=20(?C=20.=20(:foreground=20"green"))))
--8= <---------------cut=20here---------------end--------------->8---
=
Nick

>=20Martin
>=20
>=20
>=20
=20=20=20=20