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 03:24:57 -0400 Message-ID: <5924.1348730697@alphaville> References: , <4499.1348725626@alphaville> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TH8T4-00085d-0c for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 03:25:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TH8Sy-0000gI-67 for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 03:25:05 -0400 Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:36679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TH8Sy-0000gA-11 for emacs-orgmode@gnu.org; Thu, 27 Sep 2012 03:25:00 -0400 In-Reply-To: Message from elwood151@web.de of "Thu, 27 Sep 2012 09:05:11 +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: elwood151@web.de Cc: emacs orgmode-mailinglist elwood151@web.de wrote: > Why Do I need to type '?A' for priority 'A' ? ?A is elisp syntax for the character A. That's different from the string containing A which is denoted "A". As the docstring for the variable indicates, it expects a *character* as the car of the pair. > > A little remark: the bold face has to be entered without double quotes: > ':weight "bold"' has no effect, but ':weight bold' works well. > OK - sorry I screwed that up. > (setq org-priority-faces '((?A . (:foreground "red" :weight bold)) > (?B . (:foreground "yellow")) > (?C . (:foreground "green")))) > > This syntax is quite confusing for me > - is there a tutorial anywhere which explains how to do such customizations Probably the "Emacs Lisp Intro" tutorial which comes with your emacs I believe: C-h i m Emacs Lisp Intro RET > - and what wildcards can/have to be used No wildcards used here - not sure what you mean. If you mean the ? in ?A it's most definitely *not* a wildcard. > - and what "car" and "cdr" and "cons" mean? > These are obscure (but hallowed by long history) names of the basic operations in Lisp. Lisp's basic data structure is called a (dotted) pair: cons takes two things and constructs a dotted pair out of them. car and cdr (the names mean nothing unless you happen to know the architecture of some ancient IBM computer where Lisp was first developed) are selectors: car takes a pair and returns the first part of it, cdr returns the second part. Nick