emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Babel Clojure example problems


From: Lawrence Bottorff
Subject: Re: [O] Babel Clojure example problems
Date: Thu, 5 Jun 2014 10:17:16 -0500

I guess the question comes down to, Do I need to install ob-clojure.el and if so, what's the best way? ELPA doesn't have it. But then my (require 'ob-clojure) doesn't seem to throw an error. . . .

LB


On Thu, Jun 5, 2014 at 9:10 AM, Thorsten Jolitz <address@hidden> wrote:
Lawrence Bottorff <address@hidden> writes:

[why PM?]

> . . . and here's what I get:
>
> #+begin_src emacs-lisp
> (emacs-version)
> #+end_src
>
> #+RESULTS:
> : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.6)
> : of 2014-01-02 on papaya, modified by Debian
>
> #+begin_src emacs-lisp
> (call-interactively 'org-version)
> #+end_src
>
> #+RESULTS:
> : Org-mode version 8.2.3a (release_8.2.3a @
> /home/me/.emacs.d/elpa/org-20140602/)
>
> Q: Do I need to download and install a separate ob-clojure.el ? Or is
> it included somewhere?

havn't done much with ob-clojure yet, sorry, but when block 1 and 2 work
for you, you must have it.

maybe return to the list and ask if somebody can decipher the error
message? I'm just starting out with clojure and can't help much. I just
opened a temp buffer, put it in org-mode, inserted you 3 blocks, called
M-x cider-jack-in, and evaluated them successfully ...

> LB
>
> On Thu, Jun 5, 2014 at 4:53 AM, Thorsten Jolitz <address@hidden>
> wrote:
>
>     Lawrence Bottorff <address@hidden> writes:
>
>     > I'm having trouble following the example page on babel and
>     clojure (
>     >
>     http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.
>     html
>     > ). I believe I've done everything correctly, the first example
>     works:
>
>
>     all 3 blocks work fine for me
>
>
>     #+begin_src clojure :results silent
>     (+ 1 4)
>     #+end_src
>
>
>     #+begin_src clojure :results value
>     [ 1 2 3 4]
>     #+end_src
>
>
>     #+results:
>     | 1 | 2 | 3 | 4 |
>
>
>     #+begin_src clojure :results value
>     (def small-map {:a 2 :b 4 :c 8})
>     (:b small-map)
>     #+end_src
>
>
>     #+results:
>     : 4
>
>
>     PS
>     #+begin_src emacs-lisp
>     (emacs-version)
>     #+end_src
>
>     #+results:
>     : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.7)
>     : of 2014-01-28 on var-lib-archbuild-extra-x86_64-juergen
>
>
>     #+begin_src emacs-lisp
>     (call-interactively 'org-version)
>     #+end_src
>
>     #+results:
>
>     : Org-mode version 8.2.6 (release_8.2.6-1123-g024a05 @
>     : /usr/share/emacs/24.3/lisp/org/lisp/)
>
>     --
>     cheers,
>     Thorsten
>
>
>
>

--
cheers,
Thorsten


reply via email to

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