emacs-devel
[Top][All Lists]
Advanced

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

Re: Questions about submiting a package to ELPA


From: Eli Zaretskii
Subject: Re: Questions about submiting a package to ELPA
Date: Wed, 17 Apr 2024 15:38:48 +0300

> From: Elijah G <eg642616@gmail.com>
> Date: Tue, 16 Apr 2024 21:11:14 -0600
> Cc: emacs-devel@gnu.org
> 
> On Tue, Apr 16, 2024 at 8:30 PM Eli Zaretskii <eliz@gnu.org> wrote:
> >
> > Adding colors is meaningless, because colors are defined by the
> > underlying platforms.  You can add faces, using defface, where the
> > colors is defined by their hex RGB values.
> > If this doesn't answer your questions, please tell more details:
> > why do you want to add these
> > colors and how you intend to use them.
> 
> When I was adding support for colorizing HTML colors names into my
> package I found that emacs already provides some of them,
> so I thought it would be a good idea to use those colors already provided.
> However some of these colors are in lowercase and most HTML color
> names uses Capital Case and/or PascalCase, i think that maybe
> add their Pascal or Capital case would help to packages that uses HTML
> colors such as my package, rainbow-mode and maybe the colorize feature from
> css-mode; this is because users must lowercase the color name for
> preview/colorize
> them.
> But i think i must not use `defined-colors' for this behavior and
> define the colors
> myself.

What you describe seems to talk about faces, not colors.  Colors in
Emacs are not first-class citizens, they are attributes of faces.  So
I still don't understand why you cannot define faces for your package,
and define the colors for those faces via hex RGB values, as we do
when no existing color is exactly like we want.



reply via email to

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