hasu / emacs-ob-racket

Emacs Org-Mode Babel code block Racket support
https://tero.hasu.is/blog/2011-09-08-on-racket-support-in-emacs-org-mode.html
GNU General Public License v3.0
36 stars 12 forks source link

racket command not found #9

Closed borgauf closed 6 months ago

borgauf commented 7 months ago

I've got racket-mode installed and working. I've got this in my init

(add-to-list 'load-path "/home/galaxybeing/.emacs.d/modes/emacs-ob-racket") (require 'ob-racket)

as well as

(org-babel-do-load-languages (quote org-babel-load-languages) (quote ((emacs-lisp . t) (racket . t) ...

The variable racket-program is set to the racket executable /home/galaxybeing/opt/racket-8.12/bin/racket (again, racket-mode works.)

But when I try your EXAMPLES.org blocks with C-c C-c I get

racket command not found

hasu commented 7 months ago

I assume then that you don't have the "racket" executable on your PATH (at least not for the Emacs process), which is what ob-racket assumes by default. It's written not to refer to racket-mode specific settings such as `racket-program'.

You can try additionally setting

(setq ob-racket-custom-command-templates `((racket . ,racket-program)))

borgauf commented 7 months ago

That worked. Thank you.