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