Discussion:
Setting Frame Background Color
(too old to reply)
Jake Colman
2012-06-15 18:12:05 UTC
Permalink
I've recently moved to GNU Emacs 24.1.1 from XEmacs.

How can I change the background color such that I don't have white
margins?

I added the following to my .Xdefaults:

Emacs.geometry: 100x45
Emacs*Foreground: black
Emacs*Background: wheat
Emacs.pane.menubar.foreground: black
Emacs.pane.menubar.background: wheat3

The colors are fine except for the left/white margins. Is there a
different way to do this that will achieve better results?

My build configuration is as follows:

GNU Emacs 24.1.1 (sparc-sun-solaris2.10, X toolkit, Xaw3d scroll bars)

Thanks.

...Jake
Dimitris P.
2012-06-15 18:34:48 UTC
Permalink
Post by Jake Colman
I've recently moved to GNU Emacs 24.1.1 from XEmacs.
How can I change the background color such that I don't have white
margins?
Emacs.geometry: 100x45
Emacs*Foreground: black
Emacs*Background: wheat
Emacs.pane.menubar.foreground: black
Emacs.pane.menubar.background: wheat3
The colors are fine except for the left/white margins. Is there a
different way to do this that will achieve better results?
Try

Emacs.fringe.attributeBackground: wheat
Jake Colman
2012-06-15 21:14:30 UTC
Permalink
Post by Jake Colman
I've recently moved to GNU Emacs 24.1.1 from XEmacs.
How can I change the background color such that I don't have white
margins?
Emacs.geometry: 100x45
Emacs*Foreground: black
Emacs*Background: wheat
Emacs.pane.menubar.foreground: black
Emacs.pane.menubar.background: wheat3
The colors are fine except for the left/white margins. Is there a
different way to do this that will achieve better results?
DP> Try

DP> Emacs.fringe.attributeBackground: wheat

Yup! Thanks.

Can the scroll bar, scroll bar trough and arrows be colored through X
resources as well? The resources used by XEmacs appear to be Motif
resources as follows::

XEmacs*XmScrollBar.Background: wheat
XEmacs*XmScrollBar.troughColor: wheat3
XEmacs*XmScrollBar.ArrowPosition: same

Is there an Emacs equivalent?
--
Jake Colman | Director, Software Development
Principia Partners LLC
101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
e: ***@ppllc.com | w: www.principiapartners.com
Credit technology innovation awards winner 2008, 2009 & 2010
Glyn Millington
2012-06-16 06:13:10 UTC
Permalink
DP> Στις 15/06/2012 09:12 ΌΌ, ο/η Jake Colman
Post by Jake Colman
I've recently moved to GNU Emacs 24.1.1 from XEmacs.
How can I change the background color such that I don't have
white margins?
wheat Emacs.pane.menubar.foreground: black
Emacs.pane.menubar.background: wheat3
The colors are fine except for the left/white margins. Is there
a different way to do this that will achieve better results?
DP> Try
DP> Emacs.fringe.attributeBackground: wheat
Yup! Thanks.
Can the scroll bar, scroll bar trough and arrows be colored through X
resources as well? The resources used by XEmacs appear to be Motif
wheat3 XEmacs*XmScrollBar.ArrowPosition: same
Is there an Emacs equivalent?
For Motif? Not sure. I find that Emacs here follows my GTK theme, which
works fine. For documentation on this have a look at the Emacs FAQ under
'Common Requests'.


atb



Glyn
Dimitris P.
2012-06-16 08:03:19 UTC
Permalink
Post by Jake Colman
Can the scroll bar, scroll bar trough and arrows be colored through X
resources as well?
Check the last part of this guy's .Xdefaults:

http://hintsforums.macworld.com/showpost.php?s=32b1e134471946b03af7ffd83615f2a5&p=100307&postcount=6
Loading...