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: Tue, 06 Aug 2013 20:38:44 -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> <87zjsuv7vn.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 1375836016 17691 80.91.229.3 (7 Aug 2013 00:40:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Aug 2013 00:40:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 07 02:40: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 1V6rnX-0007lF-A0 for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Aug 2013 02:40:19 +0200 Original-Received: from localhost ([::1]:34776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6rnW-0001Vm-St for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Aug 2013 20:40:18 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 98 Injection-Info: mx05.eternal-september.org; posting-host="2b4d99857b7659717d3b28a24c766d4c"; logging-data="14293"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WNLopiv78bk7vbRcEyLLbv/al1j82vc8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:Xpxh4pFwDkE9EKtMiH+ZurLANkc= sha1:z++oAjbD05ulRSiVUz6AiC3WrcQ= Original-Xref: usenet.stanford.edu gnu.emacs.help:200498 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:92765 Archived-At: Emanuel Berg writes: > Dan Espen writes: > >> Shared logins? Makes no sense to me. Where is the security in >> that. > > No, probably some ancient way of sharing, when a small group of > people were on a techno-science facility with a huge mainframe, > which they used to estimate the trajectories of Russian nukes... > >> Anyway, since you brought up dealing with different monitor >> sizes here's how I deal with rxvt on different terminal sizes >> using xrdb and X-resources: >> >> #if ( HEIGHT == 900 ) /* Traditional Sparc */ >> Rxvt.geometry: 80x55 >> #elif ( HEIGHT == 1024 ) /* Sparc 21 inch */ >> Rxvt.geometry: 80x65 >> #elif ( HEIGHT == 768 ) /* Exceed in 1024x768 mode */ >> Rxvt.geometry: 80x47 >> #else /* I have no idea... */ >> Rxvt.geometry: 80x40 >> #endif > > Cool - I didn't know you could branch in .Xresources. What syntax > is that - the C preprocessor? Yes. >> The man page reveals other values you can access besides HEIGHT. > > What man page? xrdb >> Another person mentioned running xrdb and reading an .Xdefaults >> file. A common problem with .Xdefaults is that it can rapidly >> accumulate huge amounts of junk. >> >> Here's how I deal with that in my .xinitrc: >> >> cat $HOME/xdef/*.ad | xrdb -load > > Doesn't that mean you don't use .Xdefaults? Yes, as I said, from my point of view, .Xdefaults is a bad idea. It gets way too big and passing it from person to person just makes it worse. Back when I first started working with Solaris, everyone had huge .Xdefault files with all kinds of junk in them. This solution was appreciated by lots of people. >> The xdef directory contains: >> >> Emacs.ad >> exmh.ad >> xterm.ad >> etc. >> >> Makes it easy to remove things you no longer use. > > You mean, you remove it, by not adding it every time X starts? > What extension is .ad? .ad is entirely my own invention, along with using the sub-directory "xdef". So here's my current xdef directory: 241 calctool.ad 512 dtcm.adx 6031 Emacs.ad 20 exmh.adx 2063 Frame.adx 25 Gimp.ad 283 olwm.adx 499 openwin.adx 2587 x3270.ad 7894 xbiff.ad 3893 XCalc.adx 168 xcursors.ad 523 xdefaults.ad 6060 XEmacs.ad 199 xexit.ad 132 Xft.ad 1790 xlock.adx 827 xlogout.ad 230 xmeter.adx 32 xperfmon.adx 225 XPrompt.ad 7521 Xscreensaver.ad 2932 xterm.ad The files I'm currently not using are just renamed ".adx" so they get skipped. -- Dan Espen