From: Drew Adams <drew.adams@oracle.com>
To: "Pascal J. Bourguignon" <pjb@informatimago.com>, help-gnu-emacs@gnu.org
Subject: RE: way to discriminate between Emacs.app or terminal launch of Emacs in init.el
Date: Mon, 17 Aug 2015 17:18:51 -0700 (PDT) [thread overview]
Message-ID: <ff78a3a6-28b5-4c97-8896-7af3768e40d5@default> (raw)
In-Reply-To: <87614dbk78.fsf@kuiper.lan.informatimago.com>
> > 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.
I think this is what's recommended, but I can't tell you why
`display-graphic-p' is supposed to be better here. ;-)
(if (fboundp 'display-graphic-p)
(display-graphic-p)
window-system)
next prev parent reply other threads:[~2015-08-18 0:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 22:22 way to discriminate between Emacs.app or terminal launch of Emacs in init.el christopherpenrose
2015-08-17 22:41 ` christopherpenrose
2015-08-17 22:53 ` Pascal J. Bourguignon
2015-08-18 0:18 ` Drew Adams [this message]
[not found] ` <mailman.8493.1439857145.904.help-gnu-emacs@gnu.org>
2015-08-18 5:24 ` Stefan Monnier
2015-08-19 11:42 ` Alexis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff78a3a6-28b5-4c97-8896-7af3768e40d5@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=pjb@informatimago.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).