all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Artur Hefczyc" <wislaj23@wp.pl>
Subject: Re: unexpected behavior of the dotemacs
Date: Thu, 29 May 2003 22:25:48 +0200	[thread overview]
Message-ID: <bb5pgh$1qoi$1@foka1.acn.pl> (raw)
In-Reply-To: Pine.OSF.4.44.0305282347190.504513-100000@vega.utc.fr

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/

      parent reply	other threads:[~2003-05-29 20:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 22:05 unexpected behavior of the dotemacs jean daniel browne
2003-05-28 22:15 ` Sam Halliday
2003-05-29 13:19   ` Jean Daniel Browne
2003-05-29  3:36 ` Eli Zaretskii
2003-05-29  8:30 ` Kai Großjohann
2003-05-29 14:01   ` Jean Daniel Browne
2003-05-29 14:19     ` Kai Großjohann
2003-05-29 20:27       ` Reiner Steib
2003-05-29 23:51       ` Jean Daniel Browne
2003-05-30  0:14         ` Oliver Scholz
2003-05-30 14:40           ` Peter Lee
     [not found] ` <mailman.6973.1054179300.21513.help-gnu-emacs@gnu.org>
2003-05-29 13:32   ` Jean Daniel Browne
2003-05-29 13:40     ` Oliver Scholz
2003-05-29 20:25 ` Artur Hefczyc [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='bb5pgh$1qoi$1@foka1.acn.pl' \
    --to=wislaj23@wp.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.