Path: utzoo!utgpu!water!watmath!clyde!rutgers!princeton!udel!gatech!bloom-beacon!husc6!cmcl2!brl-adm!adm!rbj@icst-cmr.arpa From: rbj@icst-cmr.arpa (Root Boy Jim) Newsgroups: comp.unix.wizards Subject: Emacs csh alias Message-ID: <11251@brl-adm.ARPA> Date: 13 Jan 88 22:13:39 GMT Sender: news@brl-adm.ARPA Lines: 24 Several people have commented on the emacs alias issue. The solutions focused on csh voodoo. As usual, there is more than one way to skin a cat. Attack the problem from the other direction, with emacs voodoo. (defun suspend () "Suspend and realias emacs" (interactive) (suspend-emacs "alias emacs %emacs")) (defun exit () "Exit and unalias emacs. Too bad suspend-emacs won't take a string to stuff" (interactive) (suspend-emacs "unalias emacs; %emacs") (save-buffers-kill-emacs)) Then simply bind these functions to whatever keys you like. As noted in the exit documentation, a stuff string save-buffers-kill-emacs would be desirable. (Root Boy) Jim Cottrell National Bureau of Standards Flamer's Hotline: (301) 975-5688 Now I'm concentrating on a specific tank battle toward the end of World War II!