unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 47686@debbugs.gnu.org
Cc: laszlomail@protonmail.com
Subject: bug#47686: Live preview of setting face color
Date: Sat, 10 Apr 2021 13:49:15 +0200	[thread overview]
Message-ID: <m1zgy6bbr8.fsf@yahoo.es> (raw)
In-Reply-To: <T2NdGCBKa0BsSLP7kQPRM-knemVDj1001EdRsUD2glD1D8wSBSrmD6kc0ZLFaqGY_95feWiGOjthMQPr60KJ2P942kET8gzA4IiJOfFjTwE=@protonmail.com> (scame via's message of "Sat, 10 Apr 2021 04:37:43 +0000")

scame via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs@gnu.org> writes:

> The other day I changed the color of a face and usually it's an
> uncomfortable process, because only in the real context together with
> other colors it shows how well the color works, the small sample text
> is usually not enough. So it's choosing some some color, changing the
> face color, going to the real context to see if it's right and
> repeating until it is.
>
[...]
> It works, but it occured to me it could be easy to add something like this to the *Colors* buffer
> which I can get with M-x list-colors-display.
>
> That buffer does nothing by itself, just show colors, so keys could be bind for it to set face color:
>
> f - read a facename and set its foreground color on the fly as the user moves in the *Colors*buffer as seen on the gif above
> b - the same for face background color
> c - cancel the live preview and restore the face's colors
> s - set the selected colors of face using customize
>

An alternative way to do what you want is the following:

- Place the point on the desired text whose face you want to change.
- M-x customize-face-other-window
- Accept the default.

For there, you can use the Customize interface to apply or revert
changes and see the results in the other window, instantly.





  reply	other threads:[~2021-04-10 11:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-10  4:37 bug#47686: Live preview of setting face color scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 11:49 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-04-10 16:14   ` scame via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-06  9:58 ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m1zgy6bbr8.fsf@yahoo.es \
    --to=bug-gnu-emacs@gnu.org \
    --cc=47686@debbugs.gnu.org \
    --cc=laszlomail@protonmail.com \
    --cc=mardani29@yahoo.es \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).