From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Artur Hefczyc" Newsgroups: gmane.emacs.help Subject: Re: unexpected behavior of the dotemacs Date: Thu, 29 May 2003 22:25:48 +0200 Organization: Aster City Net Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1054239429 13455 80.91.224.249 (29 May 2003 20:17:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 29 May 2003 20:17:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu May 29 22:17:07 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19LToM-0003OV-00 for ; Thu, 29 May 2003 22:15:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19LToq-00078U-Rn for gnu-help-gnu-emacs@m.gmane.org; Thu, 29 May 2003 16:16:12 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!news.icm.edu.pl!news.astercity.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 76 Original-NNTP-Posting-Host: 212.76.54.141 Original-X-Trace: foka1.acn.pl 1054239057 60178 212.76.54.141 (29 May 2003 20:10:57 GMT) Original-X-Complaints-To: abuse@astercity.net Original-NNTP-Posting-Date: Thu, 29 May 2003 20:10:57 +0000 (UTC) X-Tech-Contact: usenet@astercity.net X-Server-Info: http://www.astercity.net/news/ X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-Xref: shelby.stanford.edu gnu.emacs.help:113864 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10358 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10358 Hi, I had the same problem before. There are some applications and windows managers which enforces their own palettes. (KDE for example) There are some solutions to that case. The one - simplest is to set default colours for your frames in the following way: ;;; Setup initial emacs frames (windows) location and size (setq default-frame-alist '((wait-for-wm . nil) (top . 0) (left . 0) (width . 85) (height . 40) (background-color . "gray15") (foreground-color . "limegreen") (cursor-color . "LightGoldenrod") (mouse-color . "yellow") )) (setq initial-frame-alist '((top . 45) (left . 300) ;; (width . 105) (height . 40) ) ) This way works in most cases. The another way is to use colour theme for emacs as someone else suggested: http://www.emacswiki.org/cgi-bin/wiki.pl?ColorTheme Next solution is to turn off enforcing colours for other applications in your window manager. It is known problem in KDE and it is even described in emacs "Known problems" C-h P under emacs. Search for 'kde' string - second one describes colour problem: Part of this description is: " Alternatively, if you do want the KDE defaults to apply to other applications, but not to Emacs, you could modify the file `Emacs.ad' (should be in the `/usr/share/apps/kdisplay/app-defaults/' directory) so that it doesn't set the default background and foreground only for Emacs. For example, make sure the following resources are either not present or commented out: Emacs.default.attributeForeground Emacs.default.attributeBackground Emacs*Foreground Emacs*Background " gl Additionally you can look in my site where I started to collect some knowledge about emacs. You can find there also sample dotemacs file. http://wttools.sourceforge.net/emacs-stuff/package.html > I try to turn the background dark green ("DarkSlateGray"), everything > works > fine with NTemacs but either of the two following commands at the end > of the .emacs fails to do what i want on the linux box: > (set-background-color "DarkSlateGray") > (set-face-background 'default "DarkSlateGray") > I also tried to set it thru the "customize GUI". > Funny thing is that it works in NTemacs and also that the color of the > background is turn to dark green during the loading of emacs (0.5 seconds) > but then it goes back to white... Artur -- Artur Hefczyc Open Source Developer http://geotools.sourceforge.net/ http://wttools.sourceforge.net/