Julien Cubizolles <j.cubizol...@free.fr> writes: > How do I enable calc as a valid source block? The following code > > #+BEGIN_SRC calc > 2 + 3 > #+END_SRC > > gives the error in the title.
Add it to `org-babel-load-languages', e.g. like this ,---- | (org-babel-do-load-languages | (quote org-babel-load-languages) | (quote ((emacs-lisp . t) | (calc . t) ...))) `---- in your init.el or via customize. See ,----[ C-h v org-babel-load-languages RET ] | org-babel-load-languages is a variable defined in `org.el'. | Its value is shown below. | | Documentation: | Languages which can be evaluated in Org-mode buffers. | This list can be used to load support for any of the languages | below, note that each language will depend on a different set of | system executables and/or Emacs modes. When a language is | "loaded", then code blocks in that language can be evaluated | with `org-babel-execute-src-block' bound by default to C-c | C-c (note the `org-babel-no-eval-on-ctrl-c-ctrl-c' variable can | be set to remove code block evaluation from the C-c C-c | keybinding. By default only Emacs Lisp (which has no | requirements) is loaded. | | You can customize this variable. | | This variable was introduced, or its default value was changed, in | version 24.1 of Emacs. | | | Value: ((emacs-lisp . t) | (dot . t) | (calc . t) | (ditaa . t) | (R . t) | (C . t) | (gnuplot . t) | (shell . t) | (ledger . t) | (org . t) | (picolisp . t) | (clojure . t) | (lilypond . t) | (plantuml . t) | (latex . t)) | | Original value was ((emacs-lisp . t)) | | [back] `---- -- cheers, Thorsten