From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Yongtao Yang Newsgroups: gmane.emacs.help Subject: Re: emacs color scheme Date: 03 Nov 2003 09:21:24 +0100 Organization: personal.yahoo.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067848898 28806 80.91.224.253 (3 Nov 2003 08:41:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2003 08:41:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 03 09:41:36 2003 Return-path: Original-Received: from hermes.netfonds.no ([80.91.224.195]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AGaHI-0004m5-00 for ; Mon, 03 Nov 2003 09:41:36 +0100 Original-Received: from monty-python.gnu.org (monty-python.gnu.org [199.232.76.173]) by hermes.netfonds.no (8.12.8p1/8.12.8) with ESMTP id hA38fXu4029285 for ; Mon, 3 Nov 2003 09:41:33 +0100 (CET) Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AGaF6-0001nY-2H for geh-help-gnu-emacs@m.gmane.org; Mon, 03 Nov 2003 03:39:20 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!pop-news-1.colt-telecom.nl!newsgate.cistron.nl!amsnews01.chello.com!newsfeed1!bredband!newsfeed2.fi.sn.net!fi.sn.net!newsfeed1.fi.sn.net!newsfeed1.funet.fi!newsfeeds.funet.fi!newsfeed.sunet.se!news01.sunet.se!dd.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: cempc10.elmagn.chalmers.se User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:117808 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-Netfonds-MailScanner-Information: Please contact the postmaster@netfonds.no if you need more information X-Netfonds-MailScanner: looks clean Xref: main.gmane.org gmane.emacs.help:13745 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13745 Han Xu writes: > Hello, > Hi, > > When I ssh/telnet to a Redhat Linux, and run same version emacs, it runs > in terminal/text mode, and the default settings for colors are: black > background, white text, and corresponding syntax highlights colors > (different colors with GUI mode). Since you are using a terminal with black background and white foreground. > > I prefer the colors used in terminal/text mode, but I use GUI desktop more > than I use ssh/telnet. I am wondering if I can let Emacs use the same > colors settings in GUI mode as in default terminal/text mode ? > There are several ways, since you are using X window, the easiest way is to put the following into your ~/.Xdefaults file. emacs*Foreground: white emacs*Background: black Then run $ xrdb -load .Xdfaults If you start emacs after that , you should have your GUI emacs with the color theme as you textmode emacs. There are some other GUI options you can tweak, it is a good idea to check the emacs info, i.e. from emacs, do "C-h i m Emacs m Resources X" > (I tried to put color scheme setting in .emacs file, but the problem is > that it changes both GUI mode colors and text mode colors, and it takes > sometime to load the scheme. And I didn't find the right scheme matching > the default terminal/text mode colors!) > Maybe "M-x color-theme-dark-laptop"? > Thanks, > > Han -- Yongtao Yang email: yangyongtao@yahoo.com