Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 13782431FAF for ; Thu, 6 Mar 2014 05:52:29 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 66lQF-+2zVER for ; Thu, 6 Mar 2014 05:52:21 -0800 (PST) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A533E431FAE for ; Thu, 6 Mar 2014 05:52:21 -0800 (PST) Received: by mail-ee0-f54.google.com with SMTP id d49so1136341eek.13 for ; Thu, 06 Mar 2014 05:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=Tk12rmXh7YvOz/rkNq7ID5Ks40ltwY6V3NQUANhjVFc=; b=J7MT6f05eWF3ExVY0kBjLqh/KLMXzC7pxHMZhRChLqij+iDhJ7Rl5/UH9cAa+BOAiN uUSXizR3Z24PCdZ7fwz+dd01URvOp+tPDXhlkTOsxtwB1qrV8N1E+AmIEcgwzO1lsJQA q9PSHwq41vNyGz7SS3FXAkZFHR4GT5bfOC12I6aKfuSv+z6RbFmp3bIBY5j+og1Pw/I+ N3axcaJgN2xjYgfqNf2ogvJ7DNUFUHnRsrYTRJnzQU1qv6otcyUlaJwRt7ZIBO12tbrY LfhZ2qA1Gm7hj0EHc0JuMVM7qu5AsqZWISNbczVghcxhjyaP3X7dk5lB1rETE2JzXYOS WOjg== X-Received: by 10.14.205.3 with SMTP id i3mr12455250eeo.23.1394113940257; Thu, 06 Mar 2014 05:52:20 -0800 (PST) Received: from chitra.dyndns-at-home.com ([2001:610:120:3001:2ad2:44ff:fe4a:b029]) by mx.google.com with ESMTPSA id m8sm22106400eef.14.2014.03.06.05.52.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Mar 2014 05:52:18 -0800 (PST) Sender: Suvayu Ali Date: Thu, 6 Mar 2014 14:52:16 +0100 From: Suvayu Ali To: notmuch@notmuchmail.org Subject: Re: how to specify notmuch colors in emacs24 Message-ID: <20140306135216.GB3399@chitra.dyndns-at-home.com> Mail-Followup-To: notmuch@notmuchmail.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1-rc1 (2013-10-16) X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Mar 2014 13:52:29 -0000 On Thu, Mar 06, 2014 at 02:24:51PM +0100, David Belohrad wrote: > Dear All, > > so far I'm changing some color faces programmatically: > > (setq notmuch-search-line-faces '(("deleted" . (:foreground "red" > :background "blue")) > ("unread" . (:foreground "DeepSkyBlue")) > ("flagged" . (:foreground "firebrick1")) > )) I use custom-set-faces and themes for this kind of customisation. > I recently upgraded to emacs24. I was using default shipped tango-dark > theme. Then (because of VHDL mode I'm using) I have created a custom > theme, and I'd like to 'backport' the piece of code above into the > custom theme so it is in accordance with the philosophy of themes. > > I have no idea how to specify it using the 'class approach',as e.g. > > `(gnus-group-news-1 ((,class (:foreground ,plum-1)))) > `(gnus-group-news-1-low ((,class (:foreground ,plum-2)))) > > Any hint would be greatly appreciated You could get some ideas from my theme. Essentially it boils down to: ((type ) (class ) (min-colors )) You can find the gory docs here: (info "(elisp) Defining Faces") Hope this helps, -- Suvayu Open source is the future. It sets us free.