William H. Magill on 11 Mar 2004 05:27:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] emacs colors


On 10 Mar, 2004, at 20:57, Jeff Abrahamson wrote:
On my workstation, emacs comes up with certain ideas of how to color
things.

On another machine where I have an account, it makes various "bad"
decisions.  Some of these I can fix:

    (set-mouse-color "blue")
    (set-cursor-color "purple")
    ; (set-background-color "white")
    ; (set-foreground-color "white")

But there are other colors, apparently, and I don't know what to call
them.  For example, syntax highlighting assumes a dark background and
so setting background to white makes a lot of text invisible.

I have no ~/.Xresources.  I tried creating an empty one to no effect.

/etc/X11/Xresources has this to say:

    emacs*Background: DarkSlateGray
    emacs*Foreground: Wheat
    emacs*pointerColor: Orchid
    emacs*cursorColor: Orchid
    emacs*bitmapIcon: on
    emacs*font: fixed
    emacs.geometry: 80x25

which all seems innocuous.  I found some links via google about color
themes, but that way lies dragons, I think.

Any thoughts what must be done to fix this?

Here's a set I've used.

Which file is used depends on your setup and implementation. Either ~/.Xresources or ~/.Xdefaults should be read by your X11 setup. The keywords are in the emacs man page. As Walt mentioned, the color names can be found in the /lib/X11/rgb.txt file.

! ---------------------------------------------------------------------*
Emacs*font: -adobe-courier-medium-r-normal--14-140-75-75-m-90-iso8859-1
! emacs*font: 7x14
Emacs.geometry: 82x55+1+150
Emacs*borderWidth: 1
Emacs*iconName: emacs


Emacs*reverseVideo: off
Emacs*bitmapIcon: on
Emacs*internalBorder: 1
Emacs*foreground: black
#ifdef COLOR
Emacs*background: LightBlue
! dec's slate gray
! emacs*background: #A8A8A8A8A8A8
! DEC blue
! emacs*background: #5F5F9292E9E9
! motif green on Tektronix
! emacs*background: #5F5FADADAEAE
! Tektronix "cadet blue" should equal "motif green".
! emacs*background: CadetBlue
!
Emacs*borderColor: yellow
Emacs*cursorColor: red
Emacs*pointerColor: red
#endif
! =====================================================================*



T.T.F.N. William H. Magill # Beige G3 - Rev A motherboard - 768 Meg # Flat-panel iMac (2.1) 800MHz - Super Drive - 768 Meg # PWS433a [Alpha 21164 Rev 7.2 (EV56)- 64 Meg]- Tru64 5.1a # XP1000 - [Alpha EV6] magill@mcgillsociety.org magill@acm.org magill@mac.com

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug