Path: utzoo!utgpu!water!watmath!clyde!rutgers!rochester!bbn!uwmcsd1!ig!jade!ucbvax!ICST-CMR.ARPA!rbj From: rbj@ICST-CMR.ARPA (Root Boy Jim) Newsgroups: comp.emacs Subject: Emacs csh alias Message-ID: <8801132214.AA26010@icst-cmr.arpa.ARPA> Date: 13 Jan 88 22:14:36 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet 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!