Setting EDITOR

John M. Sellens jmsellens at watdragon.waterloo.edu
Fri Sep 22 06:32:58 AEST 1989


In article <11520 at watcgl.waterloo.edu> lindsay at watnext.waterloo.edu (Lindsay Patten) writes:
>How can one set up one's EDITOR variable to pick the right emacs version
>even in the face of scripts which set their own paths?  Previously, I set
>my path so that I got the right one but now some scripts set their own path
>and I end up getting the wrong emacs.  What is the best way of setting this
>variable?
>
>Thanks,
>Lindsay Patten            "People are package deals - No substitutions allowed"
>Pattern Analysis & Machine Intelligence Group                   lindsay at watnext
>Department of Systems Design Engineering           lindsay at watnext.waterloo.edu
>University of Waterloo              {utai|decvax|uunet}!watmath!watnext!lindsay


How about something like this:
   set your PATH and then
   setenv EDITOR `showpath findfirst=emacs`
which will put an abolute path to your desired emacs in the variable.



More information about the Comp.unix mailing list