help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unexpected behavior of the dotemacs


From: Artur Hefczyc
Subject: Re: unexpected behavior of the dotemacs
Date: Thu, 29 May 2003 22:25:48 +0200

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]