From: Tim Johnson <tim@johnsons-web.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Test for and adapt to: -nw
Date: Tue, 24 Aug 2010 19:23:58 -0500 [thread overview]
Message-ID: <je-dnSZIHesD_-nRnZ2dnUVZ_tCdnZ2d@supernews.com> (raw)
In-Reply-To: 6IydnWV80u_F2-nRnZ2dnUVZ_uCdnZ2d@supernews.com
On 2010-08-24, Tim Johnson <tim@johnsons-web.com> wrote:
> Using emacs 23~ on linux. In some cases it would be preferable for me to
> use the -nw (do not use X) initialization option.
>
> 1)Is there an emacs function to test for X communication?
> example: (using-X-p)
Found the 'window-system variable. This suffices for the test
that I need.
> 2)Are there any color themes composed especially for emacs?
Should have asked:
2)Are there any color themes composed especially for terminal-mode emacs?
> I would like to do something like this in .emacs:
> (if (using-X-p)
> (color-theme-gnome) ;; from color-theme.el
> (nw-color-theme-gnome)) ;; from where ??
>
> 3)Is there something like an .Xresources file for a non-X emacs?
>.Xdefaults !
I have found the (tty-color-alist) function, which gives me
information on the frame terminal.
answers to question 2 may save me some work on a color scheme for
terminal mode.
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
next prev parent reply other threads:[~2010-08-25 0:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 22:23 Test for and adapt to: -nw Tim Johnson
2010-08-25 0:23 ` Tim Johnson [this message]
2010-08-25 6:10 ` Mario Lassnig
2010-08-25 16:18 ` Tim Johnson
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=je-dnSZIHesD_-nRnZ2dnUVZ_tCdnZ2d@supernews.com \
--to=tim@johnsons-web.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).