Path: utzoo!mnetor!uunet!husc6!bbn!mit-eddie!CS.ROCHESTER.EDU!smithln From: smithln@CS.ROCHESTER.EDU Newsgroups: comp.emacs Subject: Re: set EDITOR=emacs Message-ID: <8803072153.AA06846@elm.cs.rochester.edu> Date: 7 Mar 88 22:41:34 GMT Sender: mason@eddie.MIT.EDU Lines: 21 How about a shell script like ================================================================ #!/bin/sh # Written by Neil Smithline on 3/7/88 - smithln@cs.rochester.edu # System dependant location of emacs and emacsclient EDIR=/usr/new case $TERM in emacs | xterm | xterms) exec $EDIR/emacsclient $* ;; *) exec $EDIR/emacs $* ;; esac ================================================================ You can just add more terminal types (suntool terminal types) as needed. Change EDIR as is needed on your system - Neil ---------------------------------------------------------------- Neil Smithline ARPA: smithln@cs.rochester.edu UUCP: ..!{allegra,decvax}!rochester!smithln Mail: CS Dept., University of Rochester, Rochester NY 14627 ----------------------------------------------------------------