all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to set minibuffer-prompt face foreground conditionally?
@ 2012-02-12 17:32 Richard Cobbe
  2012-02-12 21:08 ` Peter Dyballa
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Cobbe @ 2012-02-12 17:32 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-13 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.