In org-mode:

#+BEGIN_SRC calc :var x=5 :var y=2


No org-babel-execute function for calc!

How do I enable calc for org-babel-execute?


As described in org documentation:

By default, only 'emacs-lisp' is enabled for evaluation. To enable or disable other languages, customize the 'org-babel-load-languages' variable either through the Emacs customization interface, or by adding code to the init file as shown next:

In this example, evaluation is disabled for 'emacs-lisp', and enabled for `R'.

  '((emacs-lisp . nil)
    (R . t)))

So here you could do the following:

      '((calc . t)))

To add to JeanPierre's answer, you can run M-x customize-variable with org-babel-load-languages to modify the list from Emacs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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