Date: Thu, 28 Aug 1997 18:51:05 +0200 From: Hans-Bernhard Broeker Subject: Re: Setup Problems To: csrabak AT dce03 DOT ipt DOT br (Cesar Scarpini Rabak) Cc: djgpp AT delorie DOT com Message-id: <01IMZEWZFPJW8WX7LN@mail> Organization: RWTH Aachen, III. physikalisches Institut B Content-transfer-encoding: 7BIT Newsgroups: comp.os.msdos.djgpp Precedence: bulk In article <1 DOT 5 DOT 4 DOT 32 DOT 19970825173456 DOT 0068701c AT dce03 DOT ipt DOT br> you wrote: > At 22:04 23/08/97 -0400, Jude DaShiell wrote: > > > >For emacs, in autoexec.bat or whereever you're going > >to have to sacrafice alot more of your path variable space. > >path=c:\djgpp\gnu\emacs\bin;%path% > >should help some. > Not quite! If you do not mind of using doskey, you can avoid setting the > emacs bin path using: > DOSKEY emacs=c:\djgpp\gnu\emacs\bin\emacs $* Or, without using DOSKEY, you can just put this little 'trampoline' batch file somewhere in your existing path. ---- emacs.bat: ------ @echo off rem just a little safety check: if "%DJGPP%"=="" goto DJGPP_MISSING c:\djgpp\gnu\emacs\bin\emacs %1 %2 %3 %4 %5 %6 %7 %8 %9 goto done :DJGPP_MISSING echo "Error: to run DJGPP Emacs, the DJGPP env. variable ought to be set!" :done ----------------------- I personally have one whole directory full of such batches, and that's put in the path. Clever use of this technique can often greatly help in reducing the path length. Most programs don't actually have to be put in the path, after all: just cd'ing to their directory and starting them from there works at least equally well. OTOH, that directory full of batches will be quite a messy collection of things, but that doesn't really matter. And if that's not enough, you can still set up some additional batches using path changing tools like 'apath.com' to do this ---- djgpp.bat ------- set DJGPP=c:\djgpp\djgpp.env rem Prepend a dir to the path: apath c:\djgpp\bin rem Appending would be 'apath +c:\djgpp\bin' ---------------------- ---- dj_end.bat ------ set DJGPP= rem *Remove* this dir from the path: apath -c:\djgpp\bin ---------------------- So you'll only have those parts of the path active that you actually use at the moment. HBB