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

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

Re: conditional font faces


From: Tim Visher
Subject: Re: conditional font faces
Date: Sat, 27 Feb 2010 21:00:33 -0500

On Sat, Feb 27, 2010 at 7:55 PM, Suvayu Ali <fatkasuvayu+linux@gmail.com> 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




reply via email to

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