From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Sanest way to make emacs behave on a Solaris OS Date: Thu, 08 Aug 2013 14:08:19 -0400 Organization: A noiseless patient Spider Message-ID: References: <87d2pzj4m2.fsf@VLAN-3434.student.uu.se> <87ob9izk9k.fsf@VLAN-3434.student.uu.se> <87fvusw968.fsf@newsguy.com> <87mwoz2gzr.fsf@VLAN-3434.student.uu.se> <87zjsskx2w.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375985417 10176 80.91.229.3 (8 Aug 2013 18:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 18:10:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 08 20:10:20 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7UfD-0008T7-M2 for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 20:10:19 +0200 Original-Received: from localhost ([::1]:59753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7UfC-0007iU-K8 for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 14:10:18 -0400 X-Received: by 10.180.87.200 with SMTP id ba8mr100053wib.0.1375985300320; Thu, 08 Aug 2013 11:08:20 -0700 (PDT) Original-Path: usenet.stanford.edu!el7no13514991wib.1!news-out.google.com!ed8ni17997wic.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 195 Injection-Info: mx05.eternal-september.org; posting-host="2b4d99857b7659717d3b28a24c766d4c"; logging-data="31210"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jKH0s+QRchJSb3IvA6vVG06PNsfbjPZE=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:0vC6Lqbh0ceVWji+FwUGA2Zn4Yk= sha1:dClgUgg33/NeV4b9MmqFMU+sBtA= Original-Xref: usenet.stanford.edu gnu.emacs.help:200515 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92782 Archived-At: Emanuel Berg writes: > Dan Espen 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