From: David Kastrup <dak@gnu.org>
Subject: Re: composing faces
Date: Fri, 17 Nov 2006 21:32:05 +0100 [thread overview]
Message-ID: <85zmapak6y.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.767.1163794621.2155.help-gnu-emacs@gnu.org
Perry Smith <pedz@easesoftware.com> writes:
> On Nov 17, 2006, at 1:08 PM, David Abrahams wrote:
>
>
>
> Is there a way to define a new face that's exactly like some other
> face, except for certain changes? For example, I'd like to build a
> face that's exactly font-lock-variable-name-face, except that it's
> always italic.
>
>
> (copy-face 'font-lock-variable-name-face 'my-new-face)
> (set-face-attribute 'my-new-face nil :italic t)
I think that one should get by without copying, using something like
(defface my-new-face ((:default :inherit font-lock-variable-name-face
:italic t)))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
prev parent reply other threads:[~2006-11-17 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-17 19:08 composing faces David Abrahams
2006-11-17 20:16 ` Perry Smith
[not found] ` <mailman.767.1163794621.2155.help-gnu-emacs@gnu.org>
2006-11-17 20:32 ` David Kastrup [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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85zmapak6y.fsf@lola.goethe.zz \
--to=dak@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.
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).