[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "clean" starting point for custom-theme-set-faces
From: |
Alex Kost |
Subject: |
Re: "clean" starting point for custom-theme-set-faces |
Date: |
Thu, 18 Sep 2014 09:23:48 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Sam Halliday (2014-09-17 16:31 +0400) wrote:
> On Wednesday, 17 September 2014 12:41:44 UTC+1, Alex Kost wrote:
>> Sam Halliday (2014-09-17 14:00 +0400) wrote:
>> > I'm creating a custom colour theme for emacs inspired by IntelliJ's
>> > Darcula. Work in progress here:
>> > https://github.com/fommil/unix/blob/master/.emacs.d/lisp/Darkula-theme.el
>> >
>> > But there are a couple of things that confuse me about emacs faces,
>> > even after reading the documentation and I'd appreciate some
>> > guidance:
>> >
>> > 1. When a theme is loaded, what are the default "inherit" values for
>> > all the faces that I'm defining? Is there an implicit "inherit"
>> > based on what that face was before the theme was loaded?
>>
>> IIUC you are faced with the old behavior of applying faces that will be
>>
>> "fixed" in Emacs 24.4. I wrote something about that here:
>>
>> <https://github.com/alezost/alect-themes/#emacs-2431-and-earlier>.
>
> Excellent, thanks! That answers my question. Although I'm a little confused
> how to use your workaround.
I just put the following into my ".emacs":
binBxGodyhS8L.bin
Description: application/emacs-lisp
> Incidentally, I was originally thinking that I could rewrite my theme to
> use your defaults but it seems to hardcode quite a lot of stuff.
>
> It would be really amazing if a theme template existed that required one
> to only provide 10 colours and then it assigned them in a sensible way
> across all the various popular major modes.
There is some kind of template: "M-x customize-create-theme".