From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: conditional font faces Date: Mon, 01 Mar 2010 14:21:52 +0100 Message-ID: <4B8BBF70.7070501@gmail.com> References: <4B89BF15.1070605@gmail.com> <874ol0l6aj.fsf@zemblan.newkuwait.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267449728 10899 80.91.229.12 (1 Mar 2010 13:22:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 13:22:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 01 14:22:04 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm5Z5-0003J3-Ga for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 14:21:39 +0100 Original-Received: from localhost ([127.0.0.1]:48927 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm5Z4-0002oE-OQ for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 08:21:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm5Ye-0002mG-SP for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:21:12 -0500 Original-Received: from [140.186.70.92] (port=46138 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm5Ye-0002kn-1c for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:21:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm5Yd-0007rW-2A for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:21:11 -0500 Original-Received: from mail-ew0-f222.google.com ([209.85.219.222]:48723) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm5Yc-0007rP-Q1 for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 08:21:10 -0500 Original-Received: by ewy22 with SMTP id 22so1665199ewy.26 for ; Mon, 01 Mar 2010 05:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=haTA29l8P/fmFgXHbJ9o9dyaqsHnp+KukvTFsy0nXB4=; b=Iwnbz+iSt4jmb2HwhnefEom9Hy0sofecRSG8zxCHUvMbDS46OushkppbXG8Y77or8S oRRYDXeEOWkwiHCOttBOQNNoxlylBOx3R3mkmFEcQXGhkcgv9cwWOgfRi81oY+ojkH21 ogfvXwu4liq7cCwiBPjmhIhe9RnhTRFYagdIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=qAdGKpLR0FqDPnLWlAIZVrivvaILwSuoetlGTxauuNlfikDSBm9KSDXlIGxizJuIsj NrJr3ZnH14yxAbjUAMBM5IwGN/bsz+FIigvAecAzYScVZHq9SbzUAC76nuvsG4b85Lo0 44DGbxpXmKvU27E68go2Qa7/m57QVVuHl0v4c= Original-Received: by 10.213.8.6 with SMTP id f6mr2875382ebf.93.1267449669937; Mon, 01 Mar 2010 05:21:09 -0800 (PST) Original-Received: from localhost.localdomain (pb-d-128-141-230-225.cern.ch [128.141.230.225]) by mx.google.com with ESMTPS id 16sm2276256ewy.11.2010.03.01.05.21.08 (version=SSLv3 cipher=RC4-MD5); Mon, 01 Mar 2010 05:21:09 -0800 (PST) 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 In-Reply-To: <874ol0l6aj.fsf@zemblan.newkuwait.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72266 Archived-At: Hi Thamer, On 01/03/10 10:50 AM, Thamer Mahmoud wrote: > Suvayu Ali 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.