all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Debian emacs -nw and background colour
@ 2007-04-22 15:27 Brendan Halpin
  2007-04-22 17:45 ` sven.bretfeld
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Brendan Halpin @ 2007-04-22 15:27 UTC (permalink / raw)
  To: help-gnu-emacs

When I run emacs in an xterm under Debian, the background switches
from white (255,255,255) to grey90 right at the end of reading
.emacs.

Nothing I do seems to have any effect on this -- .Xdefaults,
editing the term/xterm.el file, etc -- with the exception of
running

emacs -nw -q --no-site-file 

and then eval-ing the contents of .emacs (and .gnus) separately. 

I've put a (debug) as the last statement of .emacs and the colour
change happens a few statements after it loads term/xterm --
however, it's in byte-code so it's hard to see what's going on. 

Brendan
-- 
Brendan Halpin,  Department of Sociology,  University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:brendan.halpin@ul.ie  http://www.ul.ie/sociology/brendan.halpin.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Debian emacs -nw and background colour
  2007-04-22 15:27 Debian emacs -nw and background colour Brendan Halpin
@ 2007-04-22 17:45 ` sven.bretfeld
       [not found] ` <mailman.2371.1177264263.7795.help-gnu-emacs@gnu.org>
  2007-04-22 20:39 ` Eli Zaretskii
  2 siblings, 0 replies; 4+ messages in thread
From: sven.bretfeld @ 2007-04-22 17:45 UTC (permalink / raw)
  To: Brendan Halpin; +Cc: help-gnu-emacs

Hi Branden

On Sun, Apr 22, 2007 at 04:27:29PM +0100, Brendan Halpin wrote:
> When I run emacs in an xterm under Debian, the background switches
> >from white (255,255,255) to grey90 right at the end of reading
> .emacs.

I have no idea what causes this effect. But have you tried to define a
color theme in your .emacs in the following way?

(when (not window-system)
  (color-theme-emacs-nw)
)

However, the theme emacs-nw has a grey background. Maybe any other
theme of the Debian emacs-goodies package is suitable for your
needs. Or maybe a color definition using the (when (not window-system)
(...)) command has the wanted effect.

Good luck,
Sven

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Debian emacs -nw and background colour
       [not found] ` <mailman.2371.1177264263.7795.help-gnu-emacs@gnu.org>
@ 2007-04-22 18:14   ` Brendan Halpin
  0 siblings, 0 replies; 4+ messages in thread
From: Brendan Halpin @ 2007-04-22 18:14 UTC (permalink / raw)
  To: help-gnu-emacs

sven.bretfeld@gmx.ch writes:

> I have no idea what causes this effect. But have you tried to define a
> color theme in your .emacs in the following way?
>
> (when (not window-system)
>   (color-theme-emacs-nw)
> )
>
> However, the theme emacs-nw has a grey background. Maybe any other
> theme of the Debian emacs-goodies package is suitable for your
> needs. Or maybe a color definition using the (when (not window-system)
> (...)) command has the wanted effect.

Thanks for the pointer to color-theme and emacs-goodies-el. I
redefined color-theme-emacs-nw to use brightwhite instead of white
and that gives me what I want, though I think I will be tweaking
themes for some time yet!

Brendan
-- 
Brendan Halpin,  Department of Sociology,  University of Limerick,  Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F2-025 x 3147
mailto:brendan.halpin@ul.ie  http://www.ul.ie/sociology/brendan.halpin.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Debian emacs -nw and background colour
  2007-04-22 15:27 Debian emacs -nw and background colour Brendan Halpin
  2007-04-22 17:45 ` sven.bretfeld
       [not found] ` <mailman.2371.1177264263.7795.help-gnu-emacs@gnu.org>
@ 2007-04-22 20:39 ` Eli Zaretskii
  2 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2007-04-22 20:39 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Brendan Halpin <brendan.halpin@ul.ie>
> Date: Sun, 22 Apr 2007 16:27:29 +0100
> 
> When I run emacs in an xterm under Debian, the background switches
> from white (255,255,255) to grey90 right at the end of reading
> .emacs.
> 
> Nothing I do seems to have any effect on this -- .Xdefaults,
> editing the term/xterm.el file, etc -- with the exception of
> running
> 
> emacs -nw -q --no-site-file 
> 
> and then eval-ing the contents of .emacs (and .gnus) separately. 
> 
> I've put a (debug) as the last statement of .emacs and the colour
> change happens a few statements after it loads term/xterm --
> however, it's in byte-code so it's hard to see what's going on. 

I'm guessing that this is caused by some window-setup-hook set up by
something in site-init.el or ~/.emacs.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-22 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-22 15:27 Debian emacs -nw and background colour Brendan Halpin
2007-04-22 17:45 ` sven.bretfeld
     [not found] ` <mailman.2371.1177264263.7795.help-gnu-emacs@gnu.org>
2007-04-22 18:14   ` Brendan Halpin
2007-04-22 20:39 ` Eli Zaretskii

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.