From: Mario Lassnig <mario@lassnig.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Test for and adapt to: -nw
Date: Wed, 25 Aug 2010 08:10:49 +0200 [thread overview]
Message-ID: <i52c58$t83$1@speranza.aioe.org> (raw)
In-Reply-To: je-dnSZIHesD_-nRnZ2dnUVZ_tCdnZ2d@supernews.com
On 8/25/10 2:23 AM, Tim Johnson wrote:
> 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 ??
>>
Here's what I do:
(if (eq (symbol-value 'window-system) nil)
(color-theme-clarity)
(color-theme-robin-hood))
>> 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.
next prev parent reply other threads:[~2010-08-25 6:10 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
2010-08-25 6:10 ` Mario Lassnig [this message]
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='i52c58$t83$1@speranza.aioe.org' \
--to=mario@lassnig.net \
--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).