unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs-21.3 is ignoring my X-resources colors setting
@ 2004-07-08 18:44 * Tong *
  2004-07-09  3:36 ` Ian Zimmerman
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: * Tong * @ 2004-07-08 18:44 UTC (permalink / raw)


Hi, 

Sorry about the cross-posting, I've been trying to find a solution for
this for at least 3 weeks now. Many attempts have ended in vain. 

Please somebody help, please.

I've been using the following to set up my Emacs colors (dig up from
google) up till emacs-21.2-33, but they no longer work under
emacs-21.3+1-5. 

- - - - >8 - - - -
Emacs.default.attributeBackground:      gray25
Emacs.default.attributeForeground:      gray85
Emacs*XlwMenu.background:       gray35
Emacs*XlwMenu.topShadowColor:   gray60
Emacs*XlwMenu.bottomShadowColor:        gray10
Emacs*XlwMenu.foreground:       gray80
- - - - >8 - - - -

I've even made the above changes in

/usr/share/apps/kdisplay/app-defaults/Emacs.ad

and starts with emacs -q --no-site-file.

But still, emacs give me a black on white theme, which makes my eyes pain
for over 3 weeks now. Can anybody help? 

Specifically,  how can I set the editing area and menu's
foreground/background?

THANKS A THOUSAND.

-- 
Tong (remove underscore(s) to reply)
  *niX Power Tools Project: http://xpt.sourceforge.net/
  - All free contribution & collection

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
  2004-07-08 18:44 Emacs-21.3 is ignoring my X-resources colors setting * Tong *
@ 2004-07-09  3:36 ` Ian Zimmerman
  2004-07-09 10:06 ` Kai Grossjohann
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Ian Zimmerman @ 2004-07-09  3:36 UTC (permalink / raw)



Tong> Specifically, how can I set the editing area and menu's
Tong> foreground/background?

For the main area I use simply Emacs.foreground and Emacs.background.
Sorry I can't help with the menus (I am happy with the default 
black on gray).

-- 
"It's not true or not."  A reality show producer (real quote)

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
  2004-07-08 18:44 Emacs-21.3 is ignoring my X-resources colors setting * Tong *
  2004-07-09  3:36 ` Ian Zimmerman
@ 2004-07-09 10:06 ` Kai Grossjohann
  2004-07-13  7:47   ` Tim X
  2004-07-09 13:56 ` Harry Putnam
  2004-07-09 22:14 ` David Steiner
  3 siblings, 1 reply; 9+ messages in thread
From: Kai Grossjohann @ 2004-07-09 10:06 UTC (permalink / raw)


* Tong * <sun_tong@users.sourceforge.net> writes:

> /usr/share/apps/kdisplay/app-defaults/Emacs.ad

This could be the wrong file (and/or directory).  I think the file
should be named Emacs, not Emacs.ad.  And the directory needs to be
mentioned in XUSERFILESEARCHPATH or XFILESEARCHPATH or some
environment variable like this.

Perhaps it works to put it in /usr/X11R6/lib/X11/app-defaults?

You can use "appres Emacs" to check if you have used the right
filename/directory.  Perhaps "strace -eopen appres Emacs" is
illucidating regarding the search path.

Kai

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
  2004-07-08 18:44 Emacs-21.3 is ignoring my X-resources colors setting * Tong *
  2004-07-09  3:36 ` Ian Zimmerman
  2004-07-09 10:06 ` Kai Grossjohann
@ 2004-07-09 13:56 ` Harry Putnam
  2004-07-09 22:14 ` David Steiner
  3 siblings, 0 replies; 9+ messages in thread
From: Harry Putnam @ 2004-07-09 13:56 UTC (permalink / raw)


> Hi, 
>
> Sorry about the cross-posting, I've been trying to find a solution for
> this for at least 3 weeks now. Many attempts have ended in vain. 
>
> Please somebody help, please.
>
> I've been using the following to set up my Emacs colors (dig up from
> google) up till emacs-21.2-33, but they no longer work under
> emacs-21.3+1-5. 
>
> - - - - >8 - - - -
> Emacs.default.attributeBackground:      gray25
> Emacs.default.attributeForeground:      gray85
> Emacs*XlwMenu.background:       gray35
> Emacs*XlwMenu.topShadowColor:   gray60
> Emacs*XlwMenu.bottomShadowColor:        gray10
> Emacs*XlwMenu.foreground:       gray80
> - - - - >8 - - - -

You may be able to put settings like the following in ~/.Xresources
(Note: bangs (!) are considered comment chars in ~/.Xresources

You didn't mention what operating system you use but there was a time
when settings like these went in ~/.Xdefaults but in recent fedora
(redhat) desktops, this file name was changed to ~/.Xresources

These all take effect when I startx using recent Fedora core 2 and kde
desktop.  But I think it works for gnome too.

  emacs*Background: black
  emacs*Foreground: papayawhip
  #emacs.title: 
  emacs*pointerColor: white
  emacs*cursorColor: magenta
  emacs*bitmapIcon: on
  !emacs*font: -misc-fixed-bold-*-*-*-*-140-75-*-*-*-iso8859-1
  !emacs*font: -misc-fixed-bold-*-*-*-*-140-75-*-*-*-*-*
  !emacs*font: -misc-fixed-bold-*-*-*-*-130-100-*-c-*-iso8859-1
  ! emacs*font: -misc-*-bold-r-normal--15-140-75-75-*-90-iso8859-*
  ##emacs*font: 
  emacs*font:  -misc-fixed-bold-r-normal--18-120-100-100-c-90-iso8859-1
  !emacs*font: -Adobe-Courier-Bold-R-Normal--14-100-100-100-M-90-ISO8859-1
  !emacs*font: -misc-fixed-medium-*-*-*-*-140-100-*-*-*-*-*
  emacs.geometry: 100x38
  ## More font mania
  
  !emacs*menubar.font: -Adobe-Helvetica-Medium-R-Normal--18-100-75-75-P-56-ISO8859-1
  !emacs*XlwMenu.font: -Adobe-Helvetica-Medium-R-Normal--18-100-75-75-P-56-ISO8859-1

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
  2004-07-08 18:44 Emacs-21.3 is ignoring my X-resources colors setting * Tong *
                   ` (2 preceding siblings ...)
  2004-07-09 13:56 ` Harry Putnam
@ 2004-07-09 22:14 ` David Steiner
  2004-07-11 14:13   ` Harry Putnam
       [not found]   ` <mailman.525.1089555395.22971.help-gnu-emacs@gnu.org>
  3 siblings, 2 replies; 9+ messages in thread
From: David Steiner @ 2004-07-09 22:14 UTC (permalink / raw)


Hi,

man emacs
which talks about the settings in ~/.Xresources
add the entries, make sure they get loaded: 
	xrdb -load ~/.Xresources

double-check!
	xrdb -query

hope this helps

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
  2004-07-09 22:14 ` David Steiner
@ 2004-07-11 14:13   ` Harry Putnam
       [not found]   ` <mailman.525.1089555395.22971.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 9+ messages in thread
From: Harry Putnam @ 2004-07-11 14:13 UTC (permalink / raw)


David Steiner <david@sicnarf.com> writes:

> Hi,
>
> man emacs
> which talks about the settings in ~/.Xresources
> add the entries, make sure they get loaded: 
> 	xrdb -load ~/.Xresources
>
> double-check!
> 	xrdb -query
>
> hope this helps

Ha .. there's something I had forgotten all about... thanks

Does anyone know where there is a handy dandy reference chart that
shows equivalent meaning of color notations like these in plain english?

  nedit*statsLine.background:   #e6e6e6
  nedit*statsLine.foreground:   #000000
  nedit*text.background:  #ffffff
  nedit*text.cursorForeground:  #000000
  nedit*text.foreground:  #000000
  nedit*text.selectBackground:  #4c59a6
  nedit*text.selectForeground:  #ffffff

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
       [not found]   ` <mailman.525.1089555395.22971.help-gnu-emacs@gnu.org>
@ 2004-07-11 15:08     ` Ian Zimmerman
  0 siblings, 0 replies; 9+ messages in thread
From: Ian Zimmerman @ 2004-07-11 15:08 UTC (permalink / raw)



Harry> Does anyone know where there is a handy dandy reference chart
Harry> that shows equivalent meaning of color notations like these in
Harry> plain english?

Harry> nedit*statsLine.background:   #e6e6e6
Harry> nedit*statsLine.foreground:   #000000
Harry> nedit*text.background:  #ffffff
Harry> nedit*text.cursorForeground:  #000000
Harry> nedit*text.foreground:  #000000
Harry> nedit*text.selectBackground:  #4c59a6
Harry> nedit*text.selectForeground:  #ffffff

Do you mean lookup the color name based on the RGB value?
In general this is ill-defined because there are only about 1000 colors
defined in rgb.txt but there are 256^6 possible RGB combinations, assuming
16 bit depth.

What you can do is program a best approximation in some sense, for example,
least-square approximation.  The classic program for that is xcolorsel;
I have recently written a gtk 2.x act-alike called gcolorsel:

http://primate.net/~itz/gcolorsel_1.9.1.orig.tar.gz

(the .orig. is because it is part of a Debian source package, together with
the .dsc and .diff.gz files at the same location)

-- 
"It's not true or not."  A reality show producer (real quote)

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
  2004-07-09 10:06 ` Kai Grossjohann
@ 2004-07-13  7:47   ` Tim X
  2004-07-13  9:57     ` Harry Putnam
  0 siblings, 1 reply; 9+ messages in thread
From: Tim X @ 2004-07-13  7:47 UTC (permalink / raw)


>>>>> "Kai" == Kai Grossjohann <kai@emptydomain.de> writes:

 Kai> * Tong * <sun_tong@users.sourceforge.net> writes:
 >> /usr/share/apps/kdisplay/app-defaults/Emacs.ad

I just noticed that kdisplay dir - are you running kde? While I've
never used it, I have seen posts which indicate kde will over-ride
Xresource/Xdefault settings unless a tick box is set in its
configuration file. Without the tick, colours are over-riden by the
KDE desktop settings.

tim

-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

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

* Re: Emacs-21.3 is ignoring my X-resources colors setting
  2004-07-13  7:47   ` Tim X
@ 2004-07-13  9:57     ` Harry Putnam
  0 siblings, 0 replies; 9+ messages in thread
From: Harry Putnam @ 2004-07-13  9:57 UTC (permalink / raw)


Tim X <timx@spamto.devnul.com> writes:

> I just noticed that kdisplay dir - are you running kde? While I've
> never used it, I have seen posts which indicate kde will over-ride
> Xresource/Xdefault settings unless a tick box is set in its
> configuration file. Without the tick, colours are over-riden by the
> KDE desktop settings.

I'm sort of a new kde user but I haven't found the above to be true.
I haven't checked anything special but my colors listed in .Xresources
are the ones I see when starting such things as emacs and xterm.

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

end of thread, other threads:[~2004-07-13  9:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-08 18:44 Emacs-21.3 is ignoring my X-resources colors setting * Tong *
2004-07-09  3:36 ` Ian Zimmerman
2004-07-09 10:06 ` Kai Grossjohann
2004-07-13  7:47   ` Tim X
2004-07-13  9:57     ` Harry Putnam
2004-07-09 13:56 ` Harry Putnam
2004-07-09 22:14 ` David Steiner
2004-07-11 14:13   ` Harry Putnam
     [not found]   ` <mailman.525.1089555395.22971.help-gnu-emacs@gnu.org>
2004-07-11 15:08     ` Ian Zimmerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).