emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dependent colours


From: Stefan Monnier
Subject: Re: Dependent colours
Date: Thu, 14 Apr 2022 10:11:59 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

> So (make-color "blue" "red") would probably be the shortest syntax we
> could use here.  (The first for light backgrounds and the second for
> dark.)  Or just (color "blue" "red"), since the point is to have
> something short and convenient for people.

You mean like

    (defun make-color (light dark)
      (if (frame--current-backround-mode (selected-frame)) dark light))

Or do you have something more sophisticated in mind?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]