From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: christopherpenrose@gmail.com Newsgroups: gmane.emacs.help Subject: way to discriminate between Emacs.app or terminal launch of Emacs in init.el Date: Mon, 17 Aug 2015 15:22:31 -0700 (PDT) Message-ID: <17805043-1393-49a5-ad64-2010da9b1473@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1439906094 30665 80.91.229.3 (18 Aug 2015 13:54:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2015 13:54:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 15:54:52 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZRhLn-0002dK-Ad for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 15:54:51 +0200 Original-Received: from localhost ([::1]:56844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRgeE-00007c-CL for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 09:09:50 -0400 X-Received: by 10.13.231.133 with SMTP id q127mr3217899ywe.31.1439850151519; Mon, 17 Aug 2015 15:22:31 -0700 (PDT) X-Received: by 10.182.49.225 with SMTP id x1mr23972obn.16.1439850151239; Mon, 17 Aug 2015 15:22:31 -0700 (PDT) Original-Path: usenet.stanford.edu!y105no1238898qge.1!news-out.google.com!nt1ni8576igb.0!nntp.google.com!x6no1565203igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=198.105.65.197; posting-account=he-PHQkAAABX8Kbww2SBPJKk9htFQETZ Original-NNTP-Posting-Host: 198.105.65.197 User-Agent: G2/1.0 Injection-Date: Mon, 17 Aug 2015 22:22:31 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:214368 X-Mailman-Approved-At: Tue, 18 Aug 2015 09:08:55 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106672 Archived-At: 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.