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

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

Re: conditional font faces


From: Suvayu Ali
Subject: Re: conditional font faces
Date: Mon, 01 Mar 2010 14:21:52 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1

Hi Thamer,

On 01/03/10 10:50 AM, Thamer Mahmoud wrote:
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:

This was my exact problem, maybe I should have stated it explicitly. I use server mode a lot. Thanks for posting this, I will try this out today and see which of the solutions (Tim's or the one below) serves my purpose better.

(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)

Thank you very much! :)


--
Thamer


--
Suvayu

Open source is the future. It sets us free.




reply via email to

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