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: How to set minibuffer-prompt face foreground conditionally?
Date: Sun, 12 Feb 2012 12:32:00 -0500	[thread overview]
Message-ID: <20120212173200.GA430@weatherwax.local> (raw)

I'm using GNU Emacs 23.3.1 on MacOS 10.6, although I've observed the same
behavior with 23.1.1 on Ubuntu 10.10.

I'm having trouble setting the foreground color of minibuffer-prompt in my
.emacs file.  If I evaluate (set-face-foreground 'minibuffer-prompt "cyan")
either with M-x eval-expression or in the scratch buffer, then the face
changes color.  But if I put the same thing into .emacs and restart, it has
no effect at all.  Customizing the font works, but this isn't sufficient
for what I'm trying to do; see below.

Context: I want to change the foreground color of the minibuffer-prompt
face, but only when window-system is nil.  Normally (when window-system is
one of 'mac 'ns or 'x) the minibuffer prompt is readable, but when I run
emacs in a terminal, the minibuffer prompt shows up as dark blue on the
only-slightly-different dark blue that I use for my xterm background.  I do
have '(background-mode . dark) in default-frame-alist for all
window-systems.

Is there a way to do this that I'm overlooking?

Thanks,

Richard



             reply	other threads:[~2012-02-12 17:32 UTC|newest]

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

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=20120212173200.GA430@weatherwax.local \
    --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.