I have the following code in ~ / .emacs to run a circuit (gosh and mit-scheme).
;(setq scheme-program-name "gosh -i")
(setq scheme-program-name "mit-scheme")
(autoload 'scheme-mode "cmuscheme" "Major mode for scheme." t)
(autoload 'run-scheme "cmuscheme" "Run an inferior scheme process." t)
(defun scheme-other-window ()
"Run scheme on other window"
(interactive)
(switch-to-buffer-other-window
(get-buffer-create "*scheme*"))
(run-scheme scheme-program-name))
(define-key global-map
"\C-cs" 'scheme-other-window)
Cc s starts the schema along the REPL path specified in the 'schem-program-name', and I select the schema to use by commenting on one or the other.
Is there a better way than this? I mean, can I choose which circuit to use with "Mx" or something else?
source
share