[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 22:58:22 +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,
On 01/03/10 10:50 AM, Thamer Mahmoud wrote:
Suvayu Ali<fatkasuvayu+linux@gmail.com> writes:
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)
I have a small problem. If I start a no-window emacs in regular mode (as
in no server) then this doesn't take effect for the first frame. However
the change is as expected for any subsequent frame I create.
Even putting something like,
(my-color-customizations-for-nw (selected-frame))
doesn't help. Trying the same thing with
(when (window-system)
...)
doesn't have the same problem with a x-window (GUI) emacs.
Does anyone have any idea about this? Thanks in advance for any thoughts.
--
Thamer
--
Suvayu
Open source is the future. It sets us free.