help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: conditional font faces


From: Thamer Mahmoud
Subject: Re: conditional font faces
Date: Mon, 01 Mar 2010 12:50:28 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> The default face for the minibuffer-prompt is medium blue in no-window
> which makes it very difficult for me to see.

> Is there some way I could keep the defaults when using GUI and set it
> to something more readable when using no-window?

Just add the following code to your .emacs file:

(when (not window-system)
  (set-face-foreground 'minibuffer-prompt "white")
  ;; more customizations for no-window mode ...
  )

However, this won't work when using emacsclient -t. So if you run server
or daemon mode, use this instead:

(defun my-color-customizations-for-nw (frame)
  "Runs after creating new frames"
  (select-frame frame)
  (when (not window-system)
    (set-face-foreground 'minibuffer-prompt "black" frame)))
(add-hook 'after-make-frame-functions 'my-color-customizations-for-nw)

--
Thamer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]