Last active
January 17, 2017 16:04
-
-
Save g000001/eee4b3a736d0b12500abc4151ce0ddcc to your computer and use it in GitHub Desktop.
*inferior-lisp* rename
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro defrunlisp (name &optional lisp-exe-path) | |
(let ((sname (symbol-name name))) | |
`(defun ,(intern (concat "run-" sname)) () | |
(interactive) | |
(run-lisp ,(or lisp-exe-path sname)) | |
(rename-buffer ,(concat "*inferior-" sname "*"))))) | |
(defrunlisp sbcl "sbcl.wrapper") | |
(defrunlisp scl "/opt/scl/bin/lisp") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; slimeとぶつからないように? | |
(setq slime-inferior-process-start-hook | |
(list (lambda () | |
(rename-buffer (concat (buffer-name) (symbol-name (cl-gensym))))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment