all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Cobbe <cobbe@ccs.neu.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: How to set minibuffer-prompt face foreground conditionally?
Date: Mon, 13 Feb 2012 07:57:32 -0500	[thread overview]
Message-ID: <20120213125732.GA2388@vimes.home> (raw)
In-Reply-To: <6DD29708-F150-4133-A128-C726EF92172E@Web.DE>

On Sun, Feb 12, 2012 at 10:08:40PM +0100, Peter Dyballa wrote:
>
> Am 12.2.2012 um 18:32 schrieb Richard Cobbe:
>
> > Is there a way to do this that I'm overlooking?
>
> Possibly... I have set a customisation like that, which is active in all GNU Emacs variants, with or without windowing system:
>
>       '(minibuffer-prompt ((t (:background "yellow" :foreground "OrangeRed4" :weight bold))))
>
> Could be I used its own customisation system for this.

Thanks -- I wasn't aware that custom-set-faces could contain conditions
like this.  With a little digging around in the help, I was able to find a
solution.

I'm not thrilled with it -- not only do I have to edit the customization
stuff by hand (which rather seems to defeat the purpose of the
customization system), but I still think that there should be a way to do
this programatically in elisp.  However, I have a solution that works, and
I'm ok with that.

Thanks,

Richard



      reply	other threads:[~2012-02-13 12:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-12 17:32 How to set minibuffer-prompt face foreground conditionally? Richard Cobbe
2012-02-12 21:08 ` Peter Dyballa
2012-02-13 12:57   ` Richard Cobbe [this message]

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=20120213125732.GA2388@vimes.home \
    --to=cobbe@ccs.neu.edu \
    --cc=help-gnu-emacs@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.