From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Lassnig Newsgroups: gmane.emacs.help Subject: Re: Test for and adapt to: -nw Date: Wed, 25 Aug 2010 08:10:49 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <6IydnWV80u_F2-nRnZ2dnUVZ_uCdnZ2d@supernews.com> Reply-To: mario@lassnig.net NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291947384 13735 80.91.229.12 (10 Dec 2010 02:16:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 02:16:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 03:16:17 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 1PQsWs-0007Kr-Um for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 03:16:15 +0100 Original-Received: from localhost ([127.0.0.1]:59104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQsJX-0004V0-1n for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 21:02:27 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: D53vwQ+X8mXYrakDmdrzeQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:180946 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:09:23 -0500 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:77181 Archived-At: On 8/25/10 2:23 AM, Tim Johnson wrote: > 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 ?? >> 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.