[geeks] Emacs .emacs question

Scotty Logan scotty at catbert.net
Fri Feb 8 10:34:55 CST 2008


On Feb 8, 2008, at 7:49 AM, Joshua Boyd wrote:
> I want to make something in my .emacs file conditional upon whether
> emacs is running in a GUI (X11, OSX, Win32) window instead of a  
> terminal
> window.

(display-graphic-p)

returns non-nil if the current display is graphical.

   Scotty



More information about the geeks mailing list