Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!texbell!vector!attctc!usource!frankb From: frankb@usource.SARASOTA.FL.US (Frank Bicknell) Newsgroups: comp.mail.elm Subject: Re: Conditional Statements in elmrc Message-ID: <327@usource.SARASOTA.FL.US> Date: 14 Nov 89 12:54:59 GMT References: <967@wubios.wustl.edu> Reply-To: frankb@usource.SARASOTA.FL.US (Frank Bicknell) Distribution: usa Organization: UniSource, Inc. -- Sarasota, FL Lines: 25 In article <967@wubios.wustl.edu> phil@wubios.UUCP (J. Philip Miller) writes: > I find that there are certain defaults that change for me > depending on where I am, e.g. when I am at work I want the Print > command on the main menu to print on the system printer, when I > am out of town, I have an alternative for sending the stuff back > to my PC. ... > > I thought about just adding some code to .login to copy the > appropriate file to .elm/elmrc, but then begin to think about > what might happen if I had multiple sessions going :-( Well, I have used a variation on that very idea for some time with '.exrc' files for vi. I use links instead of copying, however, linking .exrc.ansi to .exrc in my home directory when I log in on an ansi terminal for example. The same sort of idea could be used for .elm/elmrc. I solve the problem of multiple sessions by checking to see if I'm already logged in; then not linking and printing a warning message in case I am. Since I can only be at one terminal at a time, it rarely presents a problem :) . -- Frank Bicknell UniSource; 1405 Main St, Ste 709; Sarasota, FL 34236 attctc!usource!frankb || frankb@usource.SARASOTA.FL.US