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

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

Re: way to discriminate between Emacs.app or terminal launch of Emacs in


From: Alexis
Subject: Re: way to discriminate between Emacs.app or terminal launch of Emacs in init.el
Date: Wed, 19 Aug 2015 21:42:39 +1000


address@hidden writes:

I would like to have a logic switch in init.el that either detects that I am launching via Terminal in OS X or launching via Emacs.app on OS X. Is there a way to do this?

i'm on Debian Linux, but i use `framep` to detect whether i'm starting `emacsclient` from X or from the console:

(framep OBJECT) Return non-nil if OBJECT is a frame. Value is: t for a termcap frame (a character-only terminal), 'x' for an Emacs frame that is really an X window, 'w32' for an Emacs frame that is a window on MS-Windows display, 'ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, 'pc' for a direct-write MS-DOS frame.


Alexis.



reply via email to

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