emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Calc in src blocks: No org-babel-execute function for calc!


From: Thorsten Jolitz
Subject: Re: [O] Calc in src blocks: No org-babel-execute function for calc!
Date: Fri, 04 Jul 2014 09:12:32 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Julien Cubizolles <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]