From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: "clean" starting point for custom-theme-set-faces Date: Wed, 17 Sep 2014 05:31:06 -0700 (PDT) Message-ID: References: <287e4dab-9ee0-4840-bb8f-0fc1b18a5501@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1410957324 25352 80.91.229.3 (17 Sep 2014 12:35:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2014 12:35:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 17 14:35:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XUES6-00040Q-NT for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 14:35:18 +0200 Original-Received: from localhost ([::1]:44842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUES6-0003PZ-9O for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 08:35:18 -0400 X-Received: by 10.224.45.133 with SMTP id e5mr24416914qaf.3.1410957066325; Wed, 17 Sep 2014 05:31:06 -0700 (PDT) X-Received: by 10.140.32.227 with SMTP id h90mr1885qgh.26.1410957066294; Wed, 17 Sep 2014 05:31:06 -0700 (PDT) Original-Path: usenet.stanford.edu!s7no1308944qap.1!news-out.google.com!q8ni9qal.1!nntp.google.com!s7no1308938qap.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.244.128.25; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 83.244.128.25 User-Agent: G2/1.0 Injection-Date: Wed, 17 Sep 2014 12:31:06 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207707 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99980 Archived-At: 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: > > . Excellent, thanks! That answers my question. Although I'm a little confused how to use your workaround. 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.