emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Calc in src blocks: No org-babel-execute function for calc!
@ 2014-07-04  6:17 Julien Cubizolles
  2014-07-04  7:12 ` Thorsten Jolitz
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Cubizolles @ 2014-07-04  6:17 UTC (permalink / raw)
  To: emacs-orgmode

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.

Julien.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Calc in src blocks: No org-babel-execute function for calc!
  2014-07-04  6:17 Calc in src blocks: No org-babel-execute function for calc! Julien Cubizolles
@ 2014-07-04  7:12 ` Thorsten Jolitz
  2014-07-07  6:53   ` Julien Cubizolles
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Jolitz @ 2014-07-04  7:12 UTC (permalink / raw)
  To: emacs-orgmode

Julien Cubizolles <j.cubizolles@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Calc in src blocks: No org-babel-execute function for calc!
  2014-07-04  7:12 ` Thorsten Jolitz
@ 2014-07-07  6:53   ` Julien Cubizolles
  0 siblings, 0 replies; 3+ messages in thread
From: Julien Cubizolles @ 2014-07-07  6:53 UTC (permalink / raw)
  To: emacs-orgmode

Thorsten Jolitz <tjolitz@gmail.com> writes:


> | 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))
> | 

Thanks, I found out that you can also load it with (require 'ob-calc).

Julien.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-07  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-04  6:17 Calc in src blocks: No org-babel-execute function for calc! Julien Cubizolles
2014-07-04  7:12 ` Thorsten Jolitz
2014-07-07  6:53   ` Julien Cubizolles

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).