Re: how to specify notmuch colors in emacs24

Subject: Re: how to specify notmuch colors in emacs24

Date: Thu, 6 Mar 2014 14:52:16 +0100

To: notmuch@notmuchmail.org

Cc:

From: Suvayu Ali


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.

<https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el>

Essentially it boils down to:

  ((type <type>) (class <color/monochrome/etc>) (min-colors <number>))

You can find the gory docs here: (info "(elisp) Defining Faces")

Hope this helps,

-- 
Suvayu

Open source is the future. It sets us free.

Thread: