unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* X Resources?
@ 2005-05-13  7:01 Greg Novak
  2005-05-13  8:35 ` Peter Dyballa
  0 siblings, 1 reply; 8+ messages in thread
From: Greg Novak @ 2005-05-13  7:01 UTC (permalink / raw)


A long time ago I put the following two lines in my .Xresources file
to give Emacs a nicer color scheme (in my opinion).  

! Set the modeline colors.
Emacs.modeline*attributeForeground:     Black
Emacs.modeline*attributeBackground:     AntiqueWhite1

Some time ago, maybe even years ago, they stopped working, and I just
now decided I'd try to figure out what was going on.  I used "editres"
to try to figure out what X resource I should be setting, thinking
that the name had changed.  However, I couldn't find anything that
looked like the right thing.

Is this even how this is done anymore?  I'm running Emacs 21.2 on OS X
10.4, built for X11 (obviously), not Carbon.

Thanks,
Greg

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

* Re: X Resources?
       [not found] <mailman.5003.1115967988.2819.help-gnu-emacs@gnu.org>
@ 2005-05-13  7:33 ` Stefan Monnier
  2005-05-13 17:33 ` kgold
  2005-10-31 18:30 ` Susan Pinochet
  2 siblings, 0 replies; 8+ messages in thread
From: Stefan Monnier @ 2005-05-13  7:33 UTC (permalink / raw)


> now decided I'd try to figure out what was going on.  I used "editres"
> to try to figure out what X resource I should be setting, thinking
> that the name had changed.  However, I couldn't find anything that
> looked like the right thing.

Rather than `editres', I'd suggest you try to browse the Emacs manual.
It has a section about Xresources.


        Stefan

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

* Re: X Resources?
  2005-05-13  7:01 Greg Novak
@ 2005-05-13  8:35 ` Peter Dyballa
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2005-05-13  8:35 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 13.05.2005 um 09:01 schrieb Greg Novak:

> ! Set the modeline colors.
> Emacs.modeline*attributeForeground:     Black
> Emacs.modeline*attributeBackground:     AntiqueWhite1
>

I had these before I went to customize the modeline:

!Emacs.modeline.attributeForeground:    Black
!Emacs.modeline.attributeBackground:    Grey
!Emacs.mode-line.attributeForeground: yellow
!Emacs.mode-line.attributeBackground: midnightblue

--
Greetings

   Pete

“One cannot live by television, video games, top ten CDs, and dumb 
movies alone”
       (Amiri Baraka 1999)

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

* Re: X Resources?
       [not found] <mailman.5003.1115967988.2819.help-gnu-emacs@gnu.org>
  2005-05-13  7:33 ` X Resources? Stefan Monnier
@ 2005-05-13 17:33 ` kgold
  2005-05-14  7:16   ` don provan
  2005-10-31 18:30 ` Susan Pinochet
  2 siblings, 1 reply; 8+ messages in thread
From: kgold @ 2005-05-13 17:33 UTC (permalink / raw)


Greg Novak <novak@dionysus.ucolick.org> writes:
> A long time ago I put the following two lines in my .Xresources file
> to give Emacs a nicer color scheme (in my opinion).  
> 
> ! Set the modeline colors.
> Emacs.modeline*attributeForeground:     Black
> Emacs.modeline*attributeBackground:     AntiqueWhite1
> 
> Some time ago, maybe even years ago, they stopped working, and I just
> now decided I'd try to figure out what was going on.  I used "editres"
> to try to figure out what X resource I should be setting, thinking
> that the name had changed.  However, I couldn't find anything that
> looked like the right thing.
> 
> Is this even how this is done anymore?  I'm running Emacs 21.2 on OS X
> 10.4, built for X11 (obviously), not Carbon.

I avoid using X resources whenever possible, as I try to share my
.emacs between Windows and Unix machines.  Here's a snippet:

(set-face-foreground 'modeline	   "navy")
(set-face-background 'modeline	   "lightblue1")

-- 
Ken Goldman   kgold@watson.ibm.com   914-784-7646

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

* Re: X Resources?
  2005-05-13 17:33 ` kgold
@ 2005-05-14  7:16   ` don provan
  2005-05-16  5:51     ` Dhruva Krishnamurthy
  0 siblings, 1 reply; 8+ messages in thread
From: don provan @ 2005-05-14  7:16 UTC (permalink / raw)


kgold@watson.ibm.com (kgold) writes:
> I avoid using X resources whenever possible, as I try to share my
> .emacs between Windows and Unix machines.

Funny you should mention that: I also share my .emacs between various
systems, which is exactly why I use X resources: I give emacs (as well
as other applications) different color schemes depending on where the
application is running to help me keep them straight. You can do that
in .emacs, of course, but the X resources on the source node is the
obvious place.

-don provan

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

* Re: X Resources?
  2005-05-14  7:16   ` don provan
@ 2005-05-16  5:51     ` Dhruva Krishnamurthy
  2005-05-19  7:40       ` don provan
  0 siblings, 1 reply; 8+ messages in thread
From: Dhruva Krishnamurthy @ 2005-05-16  5:51 UTC (permalink / raw)


>>>>> On 14 May 2005 00:16:27 -0700, don provan <dprovan@comcast.net> said:

dp> kgold@watson.ibm.com (kgold) writes:
>> I avoid using X resources whenever possible, as I try to share my .emacs
>> between Windows and Unix machines.

dp> Funny you should mention that: I also share my .emacs between various
dp> systems, which is exactly why I use X resources: I give emacs (as well as
dp> other applications) different color schemes depending on where the
dp> application is running to help me keep them straight. You can do that in
dp> .emacs, of course, but the X resources on the source node is the obvious
dp> place.

This will worn on UNIX like OS's. Does this work on Windoze box (where there
is no concept of X)? 
Maybe, you need a combination of the two.
I check the symbol to check if running under X: (boundp 'x-resource-name)
Since, even on MS-Windows, you could have a CYGWIN build using XFree86
server. I have not tried it on CYGWIN though.

-dk

-- 
Name : Dhruva Krishnamurthy (dk)
Phone: +91-(0)80-22999190
Proud FSF member: #1935

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

* Re: X Resources?
  2005-05-16  5:51     ` Dhruva Krishnamurthy
@ 2005-05-19  7:40       ` don provan
  0 siblings, 0 replies; 8+ messages in thread
From: don provan @ 2005-05-19  7:40 UTC (permalink / raw)


Dhruva Krishnamurthy <Dhruva.Krishnamurthy@in.bosch.com> writes:
> dp> Funny you should mention that: I also share my .emacs between various
> dp> systems, which is exactly why I use X resources: I give emacs (as well as
> dp> other applications) different color schemes depending on where the
> dp> application is running to help me keep them straight.
> 
> This will worn on UNIX like OS's. Does this work on Windoze box (where there
> is no concept of X)? 
> Maybe, you need a combination of the two.
> I check the symbol to check if running under X: (boundp 'x-resource-name)

I just let Windows use the default colors, but it turns out that
I don't use Emacs on Windows very much. I mainly use Windows as an
X-server for applications such as Emacs running on real systems.

> Since, even on MS-Windows, you could have a CYGWIN build using XFree86
> server. I have not tried it on CYGWIN though.

It works fine, but personally I like running the native Emacs for
Windows. I mean, X is OK, but a native Windows application is better.
Besides, CygWin puts you in that hinky simulated Unix disk that
doesn't agree with the real file system. Anyone have some Emacs code
to help with that little Snafu? It all seems so reasonable until you
run into the cases where two applications don't agree on what a file's
name is.

-don

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

* Re: X Resources?
       [not found] <mailman.5003.1115967988.2819.help-gnu-emacs@gnu.org>
  2005-05-13  7:33 ` X Resources? Stefan Monnier
  2005-05-13 17:33 ` kgold
@ 2005-10-31 18:30 ` Susan Pinochet
  2 siblings, 0 replies; 8+ messages in thread
From: Susan Pinochet @ 2005-10-31 18:30 UTC (permalink / raw)


`modeline' should be hypenated:

Emacs.mode-line.attributeBackground: AntiqueWhite1
Emacs.mode-line.attributeForeground: Black

--
sdp

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

end of thread, other threads:[~2005-10-31 18:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.5003.1115967988.2819.help-gnu-emacs@gnu.org>
2005-05-13  7:33 ` X Resources? Stefan Monnier
2005-05-13 17:33 ` kgold
2005-05-14  7:16   ` don provan
2005-05-16  5:51     ` Dhruva Krishnamurthy
2005-05-19  7:40       ` don provan
2005-10-31 18:30 ` Susan Pinochet
2005-05-13  7:01 Greg Novak
2005-05-13  8:35 ` Peter Dyballa

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).