From: Peter Boettcher <boettcher@ll.mit.edu>
Subject: Re: Customizing faces...which method?
Date: Thu, 03 Oct 2002 14:44:37 -0400 [thread overview]
Message-ID: <tradlvnyzu.fsf@coyote.llan.ll.mit.edu> (raw)
In-Reply-To: mailman.1033666437.5547.help-gnu-emacs@gnu.org
"Moore, Mathew L" <MooreML@BATTELLE.ORG> writes:
> What is the "proper" way for customizing font-lock face attributes in the
> initialization file? There seems to be a bunch of ways to do it.
>
> I would like to set different foregrounds (colors) depending on whether the
> foreground is light or dark. When I use the customize tool, it seems to
> ignore the value of frame-background-mode and sets the selected face
> attributes for all background states.
>
> So I've gone to hand editing the code right below the "do not edit or
> cut/paste" section that customize writes to my init file.
>
> Is there a better way to do this? Every time I read the documentation on
> faces, my head spins a little.
I do face setting by hand, outside the customize section:
(set-face-foreground 'font-lock-function-name-face "firebrick")
(set-face-foreground 'font-lock-comment-face "red")
(make-face-bold 'font-lock-comment-face)
(set-face-foreground 'font-lock-string-face "mediumseagreen")
(set-face-foreground 'font-lock-variable-name-face "darkgoldenrod")
--
Peter Boettcher
MIT Lincoln Laboratory
boettcher@ll.mit.edu
next parent reply other threads:[~2002-10-03 18:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1033666437.5547.help-gnu-emacs@gnu.org>
2002-10-03 18:44 ` Peter Boettcher [this message]
2002-10-03 19:42 ` Customizing faces...which method? Ivan Kanis
2002-10-03 20:28 ` Alan Shutko
2002-10-03 16:53 Moore, Mathew L
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=tradlvnyzu.fsf@coyote.llan.ll.mit.edu \
--to=boettcher@ll.mit.edu \
/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.