From: Louis-Guillaume Gagnon <louis.guillaume.gagnon@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to find out if emacs is running inside GUI or terminal
Date: Fri, 22 Nov 2013 14:16:33 -0500 [thread overview]
Message-ID: <CANCBZJsP_z3zW5=TcwMGCVPfjxZ2LRivBdKW_wZLsWPa5d83BQ@mail.gmail.com> (raw)
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
next reply other threads:[~2013-11-22 19:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 19:16 Louis-Guillaume Gagnon [this message]
2013-11-22 19:30 ` How to find out if emacs is running inside GUI or terminal Bob Proulx
2013-11-22 19:41 ` Óscar Fuentes
2013-11-25 2:04 ` Bob Proulx
2013-11-25 2:30 ` Drew Adams
2013-11-25 3:46 ` Eli Zaretskii
[not found] ` <<83k3fxb0tu.fsf@gnu.org>
2013-11-25 15:45 ` Drew Adams
2013-11-25 3:45 ` Eli Zaretskii
2013-11-25 5:56 ` Bob Proulx
2013-11-22 23:26 ` Stefan Monnier
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='CANCBZJsP_z3zW5=TcwMGCVPfjxZ2LRivBdKW_wZLsWPa5d83BQ@mail.gmail.com' \
--to=louis.guillaume.gagnon@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).