From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Louis-Guillaume Gagnon Newsgroups: gmane.emacs.help Subject: How to find out if emacs is running inside GUI or terminal Date: Fri, 22 Nov 2013 14:16:33 -0500 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1385148023 19470 80.91.229.3 (22 Nov 2013 19:20:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Nov 2013 19:20:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 22 20:20:29 2013 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 1VjwHF-00041g-1G for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Nov 2013 20:20:29 +0100 Original-Received: from localhost ([::1]:40689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjwHE-00009u-Kg for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Nov 2013 14:20:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjwDU-0007JL-QU for help-gnu-emacs@gnu.org; Fri, 22 Nov 2013 14:16:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjwDU-0003Ky-15 for help-gnu-emacs@gnu.org; Fri, 22 Nov 2013 14:16:36 -0500 Original-Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:59845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjwDT-0003Km-Pe for help-gnu-emacs@gnu.org; Fri, 22 Nov 2013 14:16:35 -0500 Original-Received: by mail-la0-f45.google.com with SMTP id eh20so1293177lab.18 for ; Fri, 22 Nov 2013 11:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=djsZT6yZkgmh0feCYvDaFfAGQcIw5J0hqrfj/PfZzPw=; b=oYFfn37tYwyVyEaYNo54Tj6yBKDf8cvjpyIcWVKuIH/as0gJkT4LsLqXCmecjfPNsD tuIhwsen5ju9BWQ+8e5oSox9ABcjpyccTN7GpSw6gY8vc2GvGri04tSFpAe8zjmwb+We Sj3s36QX+Mw1FEoPX5RLbLEtXbdx2sIfqYNbOi9GpmpRI+MMwV1OIGkaQ3uk1FQ2P6q5 9PDX+bZwOAlIu0BTSFVwyRTRAOmHecnA8Q99X7SenGMjP0h5wXx5RkrWAOfl7ZyA/h6A dyD4Ssqo7XK9pLV85ZzNCSSAtRm1BoRV2su3xMIJVFdIK6ETsKNNTdj9ijox8jxqnc8C cP2A== X-Received: by 10.112.146.200 with SMTP id te8mr2833686lbb.32.1385147793964; Fri, 22 Nov 2013 11:16:33 -0800 (PST) Original-Received: by 10.114.0.244 with HTTP; Fri, 22 Nov 2013 11:16:33 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22d X-Mailman-Approved-At: Fri, 22 Nov 2013 14:20:14 -0500 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:94572 Archived-At: Hi, Is there a way to find out within emacs if it is running in a GUI or inside a terminal (i.e. -nw switch specified on the cli) using Elisp? The reason is I would like to take different actions in my ~/.emacs depending on the situation. Thanks, glg