* composing faces
@ 2006-11-17 19:08 David Abrahams
2006-11-17 20:16 ` Perry Smith
[not found] ` <mailman.767.1163794621.2155.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 3+ messages in thread
From: David Abrahams @ 2006-11-17 19:08 UTC (permalink / raw)
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.
TIA,
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: composing faces
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>
1 sibling, 0 replies; 3+ messages in thread
From: Perry Smith @ 2006-11-17 20:16 UTC (permalink / raw)
Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 556 bytes --]
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)
HTH,
Perry Smith ( pedz@easesoftware.com )
Ease Software, Inc. ( http://www.easesoftware.com )
Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems
[-- Attachment #1.2: Type: text/html, Size: 4935 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <mailman.767.1163794621.2155.help-gnu-emacs@gnu.org>]
* Re: composing faces
[not found] ` <mailman.767.1163794621.2155.help-gnu-emacs@gnu.org>
@ 2006-11-17 20:32 ` David Kastrup
0 siblings, 0 replies; 3+ messages in thread
From: David Kastrup @ 2006-11-17 20:32 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-11-17 20:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).