From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Calc in src blocks: No org-babel-execute function for calc! Date: Fri, 04 Jul 2014 09:12:32 +0200 Message-ID: <87simhegwv.fsf@gmail.com> References: <878uo93axu.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2xfv-0006zj-Vm for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 03:12:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2xfo-0004IC-F5 for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 03:12:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:57817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2xfo-0004Fd-7m for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 03:12:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X2xfm-0002IA-Kq for emacs-orgmode@gnu.org; Fri, 04 Jul 2014 09:12:42 +0200 Received: from e178191058.adsl.alicedsl.de ([85.178.191.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2014 09:12:42 +0200 Received: from tjolitz by e178191058.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Jul 2014 09:12:42 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Julien Cubizolles 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