emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: 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 03:24:57 -0400	[thread overview]
Message-ID: <5924.1348730697@alphaville> (raw)
In-Reply-To: Message from elwood151@web.de of "Thu, 27 Sep 2012 09:05:11 +0200." <trinity-5223d043-9120-49eb-ba9b-18514ca2af62-1348729511015@3capp-webde-bs09>

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

      reply	other threads:[~2012-09-27  7:25 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
2012-09-27  7:05   ` elwood151
2012-09-27  7:24     ` Nick Dokos [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=5924.1348730697@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).