all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Howard Melman <hmelman@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Add some built-in faces for inheritance
Date: Sun, 20 Sep 2020 09:21:37 -0400	[thread overview]
Message-ID: <lya6xk37oe.fsf@Lumet2.home> (raw)
In-Reply-To: CAO2hHWa+BAMqeuOW5QLmiF_i0FR-G4DfkgMF1Ju8q50uiHsnZg@mail.gmail.com


+1 on this idea.  

I always cringe a little when I see a package define faces
with hardcoded color values.  I think the majority (perhaps
~80%) should be inherited so that themes can work without
having to declare every face in every package.

A few ideas off the top of my head from setting faces long ago.

- a label and value face that could be used for message
  headers (and their values), key/values in code, org
  properties, etc. 
- title, author, date
- filename, directoryname, executable, symlink, url, 
- level-1 - level-10 to be used in message/gnus citations,
  outlines, html headings, org/markdown headings, regexp group highlights,
  symbol-overlay.el, etc. 
- enabled, disabled, emphasized for UI elements

Perhaps there are a set of faces to be merged with others to
support emphasis.  In gnus headers, I want the header
name in one color (label face above), the header value in
another (value above), and I want to highlight the values of
Subject and From.  Perhaps those use title or author face,
or perhaps they merge with emphasized face which does bold
by default but could allow someone to change it to underline
or a different background, etc.


-- 

Howard




  reply	other threads:[~2020-09-20 13:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-17 16:43 light, dark, and theme adjustment & generation [was: solarized] Drew Adams
2020-09-17 23:21 ` Tim Cross
2020-09-19 19:36   ` Add some built-in faces for inheritance Yuan Fu
2020-09-19 19:50     ` Stefan Monnier
2020-09-19 20:00       ` Yuan Fu
2020-09-19 23:51         ` chad
2020-09-20 13:21           ` Howard Melman [this message]
2020-09-20 19:18     ` Juri Linkov
2020-09-21  7:48       ` Protesilaos Stavrou
2020-09-21 19:14         ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=lya6xk37oe.fsf@Lumet2.home \
    --to=hmelman@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.