The example given in the wiki uses an in-browser repl. If you want to
work with the "regular" rhino-repl, replace

(require '[cljs.repl.browser :as browser])

with

(require '[cljs.repl.rhino :as rhino])

And you should be all set.

On Sep 26, 4:28 pm, Paul Koerbitz <paul.koerb...@gmail.com> wrote:
> Hi David!
>
> thanks for the fast reply and this solution.
>
> I haven't gotten it to work yet, but this is more than likely due to me not
> really understanding how to put all the moving parts together.
>
> Here is what I did:
>
> Put your code into 'browser-repl'. Now if I execute this on the command line
> I get this prompt
>
> #'user/env
> "Type: " :cljs/quit " to quit"
> Starting Server on Port: 9000
> ClojureScript:cljs.user>
>
> and when I open up some page with clojure script (e.g.
> samples/repl/index.html) I can execute sutff in the browser such as
> (js/alert "hello, world!").
>
> However, if I run the script as an inferior-lisp process I also get this
> output in the *inferior-lisp* window
>
> #'user/env
> "Type: " :cljs/quit " to quit"
> Starting Server on Port: 9000
> ClojureScript:cljs.user>
>
> but I can't connect the browser. the file still loads but if I enter stuff
> in the repl the repl just hangs.
>
> I am sure I am missing something, right now I just don't see what.
>
> thanks for the help so far.
> Paul
>
>
>
>
>
>
>
> On Mon, Sep 26, 2011 at 15:55, David Nolen <dnolen.li...@gmail.com> wrote:
> > I've created the following wiki -
> >https://github.com/clojure/clojurescript/wiki/Emacs-&-inferior-lisp-mode
>
> > Let me know if this needs more clarification.
>
> > David
>
> > On Mon, Sep 26, 2011 at 9:15 AM, Paul Koerbitz 
> > <paul.koerb...@gmail.com>wrote:
>
> >> Dear Clojurians,
>
> >> I was toying with Clojurescript and really like using the Repl as
> >> described herehttps://github.com/clojure/clojurescript/wikito try
> >> things out. (thanks for all the great to everyone involved!!)
>
> >> Has anyone hooked this into Emacs in a Swank-like fashion? I would love to
> >> be able to send forms to C-c C-c or ''compile'' a file with C-c C-k.
>
> >> thanks
> >> Paul
>
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Clojure" group.
> >> To post to this group, send email to clojure@googlegroups.com
> >> Note that posts from new members are moderated - please be patient with
> >> your first post.
> >> To unsubscribe from this group, send email to
> >> clojure+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/clojure?hl=en
>
> >  --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to