From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: [External] : Running emacs without any customisation Date: Fri, 14 Oct 2022 08:31:51 +0200 Message-ID: <878rliykyw.fsf@dataswamp.org> References: <82r0zbkegq.fsf@gmail.com> <82mt9zkbmz.fsf@gmail.com> <8735brb5nt.fsf@yahoo.com> <87tu479jnt.fsf@yahoo.com> <87h7079bfo.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27286"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:+gJUX+ZbJupNuRYVl99vsOs2G0k= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 17:14:01 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojMNs-0006rf-Bt for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 17:14:00 +0200 Original-Received: from localhost ([::1]:42174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojMNr-0001nY-0M for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 11:13:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojEEr-0007sg-Qi for help-gnu-emacs@gnu.org; Fri, 14 Oct 2022 02:32:09 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:49282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojEEl-0005mW-UZ for help-gnu-emacs@gnu.org; Fri, 14 Oct 2022 02:32:09 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ojEEf-0005h3-Ua for help-gnu-emacs@gnu.org; Fri, 14 Oct 2022 08:31:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Mail-Copies-To: never Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 14 Oct 2022 11:09:16 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:139939 Archived-At: 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