From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: conditional font faces Date: Sat, 27 Feb 2010 21:00:33 -0500 Message-ID: References: <4B89BF15.1070605@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1267322506 6767 80.91.229.12 (28 Feb 2010 02:01:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2010 02:01:46 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Suvayu Ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 28 03:01:41 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 1NlYTU-0006TO-SJ for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Feb 2010 03:01:41 +0100 Original-Received: from localhost ([127.0.0.1]:33821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlYTU-0003bG-8g for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Feb 2010 21:01:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NlYSl-0003XU-QX for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 21:00:55 -0500 Original-Received: from [140.186.70.92] (port=33306 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NlYSl-0003XD-1C for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 21:00:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NlYSk-0006NO-3M for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 21:00:54 -0500 Original-Received: from mail-yx0-f183.google.com ([209.85.210.183]:37878) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NlYSj-0006NJ-VF for help-gnu-emacs@gnu.org; Sat, 27 Feb 2010 21:00:54 -0500 Original-Received: by yxe13 with SMTP id 13so2014099yxe.14 for ; Sat, 27 Feb 2010 18:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=sAS3jXQRY88FY8pCImfLxoDCdlkmOc1ez9Y3qSE7HFA=; b=G8yWhCN6lDWWMXl0Y06X9B/4gdXLFSah0nb7ueLGA1THpTTsExM1VszKaKE/VnHPUb stYMiWiefR7pa/Owdo1dlHlirgA7BYOgtSsUzz5Nro9sQ/5nXocF6gGRvlk4ZHwGd0Ev bfpUQQ368eTgQcurMJA4N9tkLUzT+25JbRNds= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=VzONcj3C++cK7JvxzAzl6+/eRCuJTnqr9kgzJyIHDWJV0ekTIROQx+GF7EhstGxBOh wPlVIkIPfx/x8/VsYq8fDvKsM4mro1lHc3/bnowYkVhxysrT7prKQD8idt8tt67doFlC MYHopW4ePRhGCYJUJi+vWWzvBr9cYzeYlPy6E= Original-Received: by 10.100.236.5 with SMTP id j5mr3542685anh.60.1267322453176; Sat, 27 Feb 2010 18:00:53 -0800 (PST) In-Reply-To: <4B89BF15.1070605@gmail.com> 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:72227 Archived-At: On Sat, Feb 27, 2010 at 7:55 PM, Suvayu Ali wrote: > I was trying to customise the font face to make everything more > visible. Usually I use Emacs with a GUI but quite often I need to use > no-window. The default face for the minibuffer-prompt is medium blue > in no-window which makes it very difficult for me to see. I however > like the defaults when using the GUI. > > Is there some way I could keep the defaults when using GUI and set it > to something more readable when using no-window? I can't remember if it's built in or not but `C-h f emacs-type RET`. You can then key off of that like so: (defun emacs-is-windowed () "Returns non-nil if Emacs is running in Windowed mode." (string-match "window" (emacs-type))) If you do any work on Apple boxes I had to patch it to correctly detect it. My patch can be found in my [.emacs repo](http://github.com/timvisher/.emacs/blob/master/lisp/platform-detection.el#L11). Hope that helps. -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail