all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Font lock, retrieving values of standard colors
@ 2007-02-13  8:53 augukarl
  2007-02-13  9:56 ` Herbert Euler
       [not found] ` <mailman.4411.1171360588.2155.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: augukarl @ 2007-02-13  8:53 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Does anyone know how to retrieve the (hex) values of the colors in the
standard color theme with Emacs, i.e. what's the color code for font-
lock-string-face, font-lock-variable-name-face etc.


Regards,

August

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Font lock, retrieving values of standard colors
  2007-02-13  8:53 Font lock, retrieving values of standard colors augukarl
@ 2007-02-13  9:56 ` Herbert Euler
       [not found] ` <mailman.4411.1171360588.2155.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Euler @ 2007-02-13  9:56 UTC (permalink / raw)
  To: augukarl, help-gnu-emacs

>Does anyone know how to retrieve the (hex) values of the colors in the
>standard color theme with Emacs, i.e. what's the color code for font-
>lock-string-face, font-lock-variable-name-face etc.

ELISP> (face-attribute 'font-lock-string-face :foreground)
"red"
ELISP> (color-values "red")
(65535 0 0)

Regards,
Guanpeng Xu

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Font lock, retrieving values of standard colors
       [not found] ` <mailman.4411.1171360588.2155.help-gnu-emacs@gnu.org>
@ 2007-02-13 10:31   ` augukarl
  0 siblings, 0 replies; 3+ messages in thread
From: augukarl @ 2007-02-13 10:31 UTC (permalink / raw)
  To: help-gnu-emacs

On 13 Feb, 10:56, "Herbert Euler" <herberteu...@hotmail.com> wrote:
> >Does anyone know how to retrieve the (hex) values of the colors in the
> >standard color theme with Emacs, i.e. what's the color code for font-
> >lock-string-face, font-lock-variable-name-face etc.
>
> ELISP> (face-attribute 'font-lock-string-face :foreground)
> "red"
> ELISP> (color-values "red")
> (65535 0 0)

Excellent, thanks.


August

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-13 10:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-13  8:53 Font lock, retrieving values of standard colors augukarl
2007-02-13  9:56 ` Herbert Euler
     [not found] ` <mailman.4411.1171360588.2155.help-gnu-emacs@gnu.org>
2007-02-13 10:31   ` augukarl

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.