From: Denis Bueno <dbueno@gmail.com>
Subject: How to detect if Emacs is running in a terminal
Date: Fri, 15 Apr 2005 11:10:33 -0400 [thread overview]
Message-ID: <6dbd4d0005041508105e3824b6@mail.gmail.com> (raw)
Is there some emacs lisp function that I could call to detect whether
the current emacs process is running from within a terminal or not?
I'd like to be able to change my font-lock faces based on whether
emacs is running in a terminal or not. At the moment I deal with this
in the following way.
I have a .emacs-common which contains code that should be loaded
regardless of the emacs interface. My .emacs is of course loaded by
default whenever I run Emacs in a window (not in a terminal). This
contains various font settings and colors used in the windowed Emacs.
I have a .emacs-terminal which contains various font settings and
colors used in the terminal Emacs.
So, when I want to use Emacs in the terminal, I run:
emacs -nw -q -l ~/.emacs-terminal
Is there a better way?
--
Denis Bueno
PGP: http://pgp.mit.edu:11371/pks/lookup?search=0xA1B51B4B&op=index
next reply other threads:[~2005-04-15 15:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-15 15:10 Denis Bueno [this message]
2005-04-15 22:56 ` How to detect if Emacs is running in a terminal Peter Dyballa
[not found] ` <mailman.1688.1113606088.2895.help-gnu-emacs@gnu.org>
2005-04-15 23:42 ` Pascal Bourguignon
2005-04-16 15:30 ` Peter Dyballa
[not found] <mailman.1647.1113578084.2895.help-gnu-emacs@gnu.org>
2005-04-15 15:32 ` David Kastrup
2005-04-15 15:56 ` Stefan Monnier
2005-04-15 16:11 ` Pascal Bourguignon
2005-04-16 12:05 ` Ismael Valladolid Torres
[not found] ` <mailman.1726.1113653312.2895.help-gnu-emacs@gnu.org>
2005-04-16 12:18 ` Stefan Monnier
2005-04-16 14:20 ` Reiner Steib
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=6dbd4d0005041508105e3824b6@mail.gmail.com \
--to=dbueno@gmail.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).