Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!cwjcc!gatech!bbn!jr@bbn.com From: jr@bbn.com (John Robinson) Newsgroups: comp.emacs Subject: Re: customizing run-lisp Message-ID: <32874@bbn.COM> Date: 30 Nov 88 17:30:38 GMT References: <545200001@uxg.cso.uiuc.edu> Sender: news@bbn.COM Reply-To: jr@bbn.com (John Robinson) Organization: BBN Systems and Technologies Corporation, Cambridge MA Lines: 25 In-reply-to: gengler@UXG.CSO.UIUC.EDU In article <545200001@uxg.cso.uiuc.edu>, gengler@UXG writes: >How do you change the command used by 'run-lisp' to invoke a >lisp processor of a different name. > >Our system's (gould) lisp is invoked with the command 'clisp' not >'lisp' as run-lisp expects. How can I change this? Here's run-lisp's definition: (defun run-lisp () "Run an inferior Lisp process, input and output via buffer *lisp*." (interactive) (switch-to-buffer (make-shell "lisp" inferior-lisp-program)) (inferior-lisp-mode)) Insert a 'c' inside the string argument to make-shell. Then place your cursor after the last right-paren and type ^X^E (eval-last-sexp) to install this modified run-lisp in your emacs. To do this every time you start emacs, put the defun inside your .emacs file. To make run-lisp more general, replace the explicit string with a variable, and defvar it as apporpriate. -- /jr jr@bbn.com or bbn!jr