From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thamer Mahmoud Newsgroups: gmane.emacs.help Subject: Re: conditional font faces Date: Mon, 01 Mar 2010 12:50:28 +0300 Message-ID: <874ol0l6aj.fsf@zemblan.newkuwait.org> References: <4B89BF15.1070605@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1267437817 2853 80.91.229.12 (1 Mar 2010 10:03:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 10:03:37 +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 11:03:33 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 1Nm2TA-0007Ct-3u for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 11:03:20 +0100 Original-Received: from localhost ([127.0.0.1]:57403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm2T9-0007yp-No for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 05:03:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nm2QD-0006Sq-Hp for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 05:00:17 -0500 Original-Received: from [140.186.70.92] (port=51020 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nm2QB-0006Rc-Td for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 05:00:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nm2QB-0007jL-43 for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 05:00:15 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:37216) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nm2QA-0007j4-47 for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 05:00:15 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nm2Pz-0004Js-HN for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 11:00:03 +0100 Original-Received: from 89.203.6.209 ([89.203.6.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Mar 2010 11:00:03 +0100 Original-Received: from thamer.mahmoud by 89.203.6.209 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Mar 2010 11:00:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 89.203.6.209 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:bewJ32KkzxbpyRCDk4F4aqiSWkM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:72263 Archived-At: 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: (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