Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!jade!ucbvax!SUN.MCS.CLARKSON.EDU!mrd From: mrd@SUN.MCS.CLARKSON.EDU ("Michael R. DeCorte") Newsgroups: comp.emacs Subject: alias for emacs Message-ID: <8801131531.AA14350@sun.mcs.clarkson.edu> Date: 13 Jan 88 15:31:46 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 17 A little while ago someone asked for an alias that would either execute emacs or if emacs was in the background do an fg on it. This is an improved version of the one I had sent in then. This only calls ps and sed. It used to call tail and egrep also. To use it just pop the line below into your .cshrc and instead of typing emacs you have to type gnu. If you really want to type emacs you can modify the script and substitue the 'emacs' on the end with the actual path of your emacs. So instead of 'emacs' you would have say '/usr/local/bin/emacs'. Then you could call the alias emacs instead. alias gnu 'eval `ps | sed -e "s/.*[e]macs.*/fg %/" -e "t" -e "d" `'emacs'' Michael DeCorte mrd@clutx.clarkson.edu mrd@clutx.bitnet