[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Referencing defface faces in custom faces...
From: |
Emanuel Berg |
Subject: |
Re: Referencing defface faces in custom faces... |
Date: |
Sat, 15 Aug 2015 04:52:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Stuart Hungerford <stuart.hungerford@gmail.com>
writes:
> I'm creating a custom theme with
> custom-theme-set-faces and I'd like to factor out
> the face definitions it uses into defface macro
> calls where I can make use of the :inherits option
> to derive a family of related faces:
>
> (defface light-text-face '((t :family "Source Code
> Pro" :foundry "nil" :height 281 :weight extra-light
> :width extra-condensed :background "#040404"
> :foreground "#f4f4f4")) "")
>
> (defface ;; other faces using :inherit
>
> (custom-theme-set-faces 'pastels `(default ;;
> reference light-text-face here ...
>
> What's the idiomatic way of referencing the faces
> created by the defface macro in custom-set-faces or
> am I going about this in the wrong way?
I have something similar: faces, `custom-set-faces',
and a macro ("define-color-face") that simplifies
setup.
It might help you but I wouldn't down a paleo-bottle
of poison it will:
http://user.it.uu.se/~embe8573/conf/emacs-init/faces.el
--
underground experts united
http://user.it.uu.se/~embe8573