help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Sanest way to make emacs behave on a Solaris OS


From: Dan Espen
Subject: Re: Sanest way to make emacs behave on a Solaris OS
Date: Thu, 08 Aug 2013 14:08:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Emanuel Berg <embe8573@student.uu.se> writes:

> Dan Espen <despen@verizon.net> writes:
>
>> Emacs.ad
>
> I never thought about configuring Emacs with this method.
>
> What is configurable that way?
>
> If you are lazy, but still generous, and not shy, how about
> posting that file?
>
> Are there any advantages configuring Emacs like that? Anything
> that can't be done in .emacs? Does it all relate to X? If it can
> be done in .emacs, is there a speed advantage?

X-resources are only for X-windows.
The advantage to using X-resources is that they are all set before
the window is created so you don't get things like the window starting
up 20 lines high and changing as the .emacs is read.
Long ago the help for Emacs recommended using X-resources for this
reason.  It may still do so, I haven't looked in a long time.

What can you set with X-resources?  Lots of things.
My current file is small enough that I guess I can post it here,
but be warned, this is old and may be configuring things long gone
or XEmacs based.

! This is a little funny, but I start XEmacs with 2 frames, one of them
! for mail, and I give it the resource name "xmh".  This makes it start
! iconic:
Emacs*xmh.iconic: true

! Gnus-5 uses this:
Emacs.backgroundMode: dark
! Even though I said it was dark it picked this dark color:
Emacs.custom-face-forestgreen-default-default-nil-t-nil.attributeForeground:pink

Emacs*XlwMenu.selectColor:              ForestGreen
Emacs*XmToggleButton.selectColor:       ForestGreen
! Specify the colors of the various sub-widgets of the dialog boxes.
Emacs*dialog*Foreground:                Black
! #A5C0C1 is a shade of blue
Emacs*dialog*Background:                #A5C0C1
Emacs*dialog*XmTextField*Background:    WhiteSmoke
Emacs*dialog*XmText*Background:         WhiteSmoke
Emacs*dialog*XmList*Background:         WhiteSmoke
! Xlw Scrollbar colors
Emacs*XlwScrollBar.Foreground:          Gray30
Emacs*XlwScrollBar.Background:          Gray75
Emacs*XmScrollBar.Foreground:           Gray30
Emacs*XmScrollBar.Background:           Gray75

! xemacs wants . after Emacs, at least for some things:
Emacs.modeline.attributeBackground:   Wheat
Emacs.modeline.attributeForeground:   Black

! The menubar is 8x13bold (fontlist is if motif widgets are used):
Emacs*menubar*font:     -misc-*-bold-r-normal--13-120-75-75-*-80-iso8859-*
Emacs*menubar*fontlist: -misc-*-bold-r-normal--13-120-75-75-*-80-iso8859-*
Emacs*popup*font: -misc-*-bold-r-normal--15-140-75-75-*-90-iso8859-*

! DJE, 09/28/2009, try to set Emacs menubar colors, not working:
Emacs.menubar*foreground: white
! The "pane" part is for Lucid menus:
Emacs.pane.menubar.background: cornflowerblue
! With LessTif, there are sub-Widgets:
Emacs.pane.menubar.*.background: cornflowerblue

Emacs.menu*.foreground: white
Emacs.menu*.background: cornflowerblue
Emacs.dialog*.foreground: white
Emacs.dialog*.background: blue

! Customize the pointers:
!(default)Emacs*textPointer:    xterm
Emacs*spacePointer:             sailboat
Emacs*modeLinePointer:          spider
Emacs*selectionPointer:         trek
!(default)Emacs*gcPointer:      watch

! Geometry changes based on screen size:
#if ( HEIGHT == 900 )     /* Traditional Sparc */
Emacs.geometry: 81x55+0+0
#elif ( HEIGHT == 1024 )  /* Sparc 21 inch */
Emacs.geometry: 81x63+0+0
#elif ( HEIGHT == 768 )   /* Exceed in 1024x768 mode */
Emacs.geometry: 81x46+0+0
#elif ( HEIGHT == 1200 ) /* My home machine, 1600x1200 use side x side layout */
! No good w. 10x20 Emacs*xmh.geometry: 81x68+757+105
Emacs.geometry: 81x56
#elif ( HEIGHT == 1600 ) /* My home machine rotated 1600x1200 */
Emacs.geometry: 81x70
#else                     /* I have no idea... */
Emacs.geometry: 81x40+0+0
#endif

! This is 10x20:
Emacs.default.attributeFont: -*-*-medium-*-normal--20-200-75-75-*-100-iso8859-*
! Set these, otherwise emacs wont figure out the right size font:
Emacs.italic.attributeFont: -*-*-*-*-normal--*-160-75-75-m-50-iso8859-*
Emacs.bold.attributeFont: -*-*-*-*-normal--*-160-75-75-m-50-iso8859-*
Emacs.bold-italic.attributeFont: -*-*-*-*-normal--*-160-75-75-m-50-iso8859-*

!# 7x13 bold
Emacs.modeline.attributeFont:-misc-*-bold-r-normal--13-120-75-75-*-70-iso8859-*
! This one is a different size, one of the rare cases when it looks OK:
Emacs.man-heading.attributeFont:-adobe-courier-bold-r-normal--*-190-75-75-m-0-iso8859-1
Emacs.man-heading.attributeForeground:pink

! Overall color scheme:
Emacs*Background:  black
Emacs*BackGround:  black
Emacs*background:  black
Emacs*Foreground:  chartreuse
Emacs*ForeGround:  chartreuse
Emacs*foreground:  chartreuse

! Added this to suppress a warning:
Emacs.italic.attributeForeground: pink
Emacs.italic.attributeBackground: black
Emacs.bold-italic.attributeForeground: pink
Emacs.bold-italic.attributeBackground: black
Emacs.bold.attributeBackground: black

#ifdef COLOR
Emacs*XmScrollBar*Foreground:   lavender
Emacs*XmScrollBar*Background:   wheat
Emacs*cursorColor: white
! Defaults for gnus
Emacs.message-highlighted-header-contents.attributeForeground: coral
Emacs.message-cited-text.attributeForeground: lavender
! Defaults for search/selection
Emacs.isearch.attributeBackground: black
Emacs.isearch.attributeForeground: coral
Emacs.highlight.attributeForeground: red
Emacs.bold.attributeForeground: pink
! primary-selection changed to zmacs-region in 19.12
Emacs.zmacs-region.attributeBackground: DarkOrchid3
Emacs.primary-selection.attributeBackground: DarkOrchid3
Emacs.secondary-selection.attributeBackground: DarkOrchid2
! Menubar etc.
Emacs*menubar*Background:  DeepSkyBlue1
Emacs*menubar*Foreground:  black
Emacs*menubar.buttonForeground:         pink
! Dont see this having any effect: dje
Emacs*popup*Background:  lightblue
Emacs*popup*Foreground:  black
Emacs*pointerForeground:              white
Emacs*pointerBackground:              red
! With 19.12, these generated warnings with * after Emacs...dje 6/30/95
Emacs.attributeForeground: green
Emacs.attributeBackground: black
#endif

! For those poor souls without color:
#ifndef COLOR
Emacs*ForeGround:  black
Emacs*Foreground:  black
Emacs*foreground:  black
Emacs*BackGround:  white
Emacs*Background:  white
Emacs*background:  white
Emacs*borderColor: black
Emacs*CursorColor: black
Emacs*cursorColor: black
Emacs*attributeForeground: black
Emacs*attributeBackground: white
Emacs.bold.attributeForeground: white
Emacs.highlight.attributeForeground: white
Emacs.isearch.attributeForeground: white
Emacs.menubar.Foreground: white
Emacs.modeline.Foreground:      white
Emacs.modeline.attributeForeground: white
Emacs.modeline.attributeBackground: black
Emacs.pointerForeground: white
Emacs.popup.foreground: white
Emacs.primary-selection.attributeForeground: white
Emacs.secondary-selection.attributeForeground: white
Emacs.bold.attributeBackground: black
Emacs.highlight.attributeBackground: black
Emacs.isearch.attributeBackground: black
Emacs.menubar.Background: black
Emacs.pointerBackground: black
Emacs.popup.background: black
Emacs.primary-selection.attributeBackground: black
Emacs.secondary-selection.attributeBackground: black
Emacs*pointerColor: black
#endif



-- 
Dan Espen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]