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: Pascal J. Bourguignon
Subject: Re: way to discriminate between Emacs.app or terminal launch of Emacs in init.el
Date: Tue, 18 Aug 2015 00:53:47 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

christopherpenrose@gmail.com 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 am quite happy using Emacs in a terminal, and am often
> inconvenienced using Emacs.app for all my emacs needs, despite
> netsperts who proclaim that I am gimping myself.


You can use window-system
It'll be nil in the terminal, and ns for Emacs.app.
Other values are possible.

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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