From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Test for and adapt to: -nw Date: Tue, 24 Aug 2010 19:23:58 -0500 Organization: AkWebsoft Message-ID: References: <6IydnWV80u_F2-nRnZ2dnUVZ_uCdnZ2d@supernews.com> Reply-To: tim@johnsons-web.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291860806 14370 80.91.229.12 (9 Dec 2010 02:13:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 02:13:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 03:13:21 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQW0X-0004B0-EA for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 03:13:21 +0100 Original-Received: from localhost ([127.0.0.1]:44207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQW0W-0001E5-ML for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 21:13:20 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Tue, 24 Aug 2010 19:23:58 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: slrn/0.9.9p1 (Linux) Original-Lines: 28 Original-X-Trace: sv3-hn1C4RhSgZ/UB5qARYTKUzueZxg6+vZCOT+IyVayviVI6ZapjnBzTKamYweGjzHUqn+w+6EQJORB80O!cOJ0TR0lVZZgse7mtLWB0o3N81NX8Mym65Wz1VHSVwvofKzkWxeZAh0haeRpacAHc3OrBSuw7LyP!NN7tRySKmg== Original-X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: usenet.stanford.edu gnu.emacs.help:180944 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76452 Archived-At: On 2010-08-24, Tim Johnson 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