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: "clean" starting point for custom-theme-set-faces Date: Wed, 17 Sep 2014 03:00:54 -0700 (PDT) Message-ID: <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 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410948353 9018 80.91.229.3 (17 Sep 2014 10:05:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Sep 2014 10:05:53 +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 12:05:48 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 1XUC7O-00058e-Uw for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 12:05:47 +0200 Original-Received: from localhost ([::1]:43609 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUC7O-0001Z9-HQ for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Sep 2014 06:05:46 -0400 X-Received: by 10.42.70.144 with SMTP id f16mr3512676icj.8.1410948054501; Wed, 17 Sep 2014 03:00:54 -0700 (PDT) X-Received: by 10.140.40.85 with SMTP id w79mr741qgw.38.1410948054352; Wed, 17 Sep 2014 03:00:54 -0700 (PDT) Original-Path: usenet.stanford.edu!h18no2225692igc.0!news-out.google.com!q8ni9qal.1!nntp.google.com!s7no1299004qap.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help 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 10:00:54 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:207703 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:99975 Archived-At: Hi all, 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 af= ter reading the documentation and I'd appreciate some guidance: 1. When a theme is loaded, what are the default "inherit" values for all th= e faces that I'm defining? Is there an implicit "inherit" based on what tha= t face was before the theme was loaded? I've found that I need to override a lot of things with e.g. ":underline= nil" when actually I want to be defining my faces from a clean slate, inhe= riting from "default" without having to explicitly write that. 2. How do I re-use attributes inside custom-theme-set-faces? I can't put th= e list of faces inside a (let ) because custom-theme-set-faces is expecting= one parameter per face. Ideally I'd like to define a bunch of things in so= me form of data structure so that I don't have to repeat the values, and al= so so that I can parametrise the theme. (e.g. I could have a function that = returns my theme with a permutation on font-lock colours) Best regards, Sam