emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Calc in src blocks: No org-babel-execute function for calc!
Date: Fri, 04 Jul 2014 09:12:32 +0200	[thread overview]
Message-ID: <87simhegwv.fsf@gmail.com> (raw)
In-Reply-To: 878uo93axu.fsf@free.fr

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

  reply	other threads:[~2014-07-04  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2014-07-07  6:53   ` Julien Cubizolles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87simhegwv.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).