all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Peter Jones'" <mlists@pmade.com>, <Help-gnu-emacs@gnu.org>
Subject: RE: custom-set-faces
Date: Sat, 10 May 2008 11:22:56 -0700	[thread overview]
Message-ID: <000e01c8b2ca$de9e66c0$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <m2d4nu3uv4.fsf@pmade.com>

> > That said, there is also no special reason to use 
> > `custom-set-faces' to do what
> > you want, unless you find it more convenient.
> 
> I'm only using custom-set-faces because that's what color-theme.el was
> doing.  I've since ditched color theme, and just do it myself.
> 
> What's the more appropriate function to use?

Perhaps I misspoke. It depends on what you want/need. If you want to do
everything that `custom-set-faces' does, then that is appropriate.

If you just want to change some attributes of a given face for the current
session, then you can use `set-face-attribute'.

See node Attribute Functions in the Elisp manual.

You might also want to take a look at `face-spec-set' and `face-spec-set-2',
which each accept as argument the kind of face spec that `custom-set-faces'
deals with (which you therefore have already).

Again, I didn't mean to imply that you should not use `custom-set-faces' for
this. But keep in mind that it interacts with Customize - that's what it's
designed for. If you never use Customize, then you don't care about that, but if
you do, then at least be aware of it.

All that said, I would offer this general suggestion: Customize is your friend.
Even if you find it ugly or a little inconvenient to use, it has some powerful
type-checking and other features that can help you. The baby is admittedly
sometimes hard to see in the murky bathwater.





  parent reply	other threads:[~2008-05-10 18:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08 15:41 Highlight Active Window Lex Fridman
2008-05-08 22:10 ` Lennart Borgman (gmail)
2008-05-08 22:11 ` Peter Dyballa
2008-05-08 23:44   ` Lex Fridman
2008-05-09  6:07     ` Lennart Borgman (gmail)
2008-05-10 17:21       ` custom-set-faces [was: Highlight Active Window] Peter Jones
2008-05-10 17:26         ` Lennart Borgman (gmail)
2008-05-10 17:44         ` Drew Adams
2008-05-10 17:57           ` custom-set-faces Peter Jones
2008-05-10 18:15             ` custom-set-faces Lennart Borgman (gmail)
2008-05-10 18:22             ` Drew Adams [this message]
2008-05-09  8:25     ` Highlight Active Window Peter Dyballa

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='000e01c8b2ca$de9e66c0$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=Help-gnu-emacs@gnu.org \
    --cc=mlists@pmade.com \
    /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.