Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!teknowledge-vaxc!mkhaw
From: mkhaw@teknowledge-vaxc.ARPA (Mike Khaw)
Newsgroups: comp.emacs
Subject: another emacs csh alias
Message-ID: <19514@teknowledge-vaxc.ARPA>
Date: 10 Dec 87 03:18:25 GMT
References: <8712091547.AA18971@ucbvax.Berkeley.EDU>
Organization: Teknowledge, Inc., Palo Alto CA
Lines: 19

how about this:

- in ~/.cshrc or ~/.login

	source ~/.emacsalias

- in ~/.aliasemacs

	alias %emacs 'unalias %emacs; emacs \!:*; source ~/.emacsalias'

So %emacs will start emacs the first time, but once an emacs is started,
%emacs foregrounds a ^Z'ed emacs until you ^X^C from emacs, when the original
alias is restored.  It only costs the source'ing of a very short file.

Mike Khaw
-- 
internet:  mkhaw@teknowledge-vaxc.arpa
usenet:	   {uunet|sun|ucbvax|decwrl|uw-beaver}!mkhaw%teknowledge-vaxc.arpa
USnail:	   Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303