5

How do I set org-mode to use racket instead of Guile?

I want to use emacs,org-mode and racket to go through the SICP.

I can start Geiser, choosing Racket in the Start Geiser for scheme implementation menu.

But when I execute C-c C-c on a src block in an org file

#+BEGIN_SRC
 (print "hello world")
#+END_SRC

it tells me:

Unable to start REPL:
Searching for program: no such file or directory, guile.exe

So again, how do I set org-mode to use racket instead of Guile?

Thanks in advance for your kind help and time.

P.S

I also enable scheme in org mode and set the scheme program to be Racket

(setq scheme-program-name "C:/Program\ Files/Racket/Racket.exe")
 (org-babel-do-load-languages
      'org-babel-load-languages
      '((emacs-lisp . nil)
        (scheme . t)))

1 Answer 1

2

You leave these two lines in you .emacs file

(add-hook 'scheme-mode-hook 'geiser-mode)
(setq geiser-default-implementation 'racket)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.