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

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

Re: [External] : Running emacs without any customisation


From: Emanuel Berg
Subject: Re: [External] : Running emacs without any customisation
Date: Fri, 14 Oct 2022 08:31:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Po Lu wrote:

>> Perhaps we could do as follows. Emacs could provide
>> light-default.el and dark-default.el for the case when
>> users need a quick emacs setup that is easy to read.
>> Might use modus-themes because I would think has the best
>> visibility for both light and dark theme. And there would
>> be no need to inhibit x-resources as is standard.
>
> How is the choice of default theme related in any way to the
> X resource manager?

Well, here is one way to put it ...

(not mine, was used and posted by Dan Espen)

! 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

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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