I don’t have quite the same setup (I’m using a modified earlier version of Chestnut), but one way to get what you want is by attaching a new REPL with lein repl :connect. Any other nREPL connection will accomplish more or less the same thing—your editor may give you other options.
The switch between the CLJ and CLJS context is *per-REPL-connection*, not per REPL/application instance, so you can have them both running side-by-side. I don’t know much about Emacs, but in Vim, fireplace.vim uses a separate nREPL connection for .cljs files, and switches that one into CLJS-REPL-mode. Peter On Mon, Oct 27, 2014 at 11:34 AM, Colin Yates <[email protected]> wrote: > er... how? :). > > I am using the excellent chestnut (https://github.com/plexus/chestnut) > lein template and I have a browser connected repl. However, do I start a > second repl for the server repl? > > I am kicking myself as I came across a page which had some elisp for > dispatching to a second repl in emacs based on the context (e.g. eval in a > cljs buffer went to one repl, eval in a clj buffer went to the other). Can > I find it again.... nope. > > What do you all do? > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Visuals: http://youtube.com/peeja Words: http://blog.peeja.com/ Conversation: (603) 548-1203 -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
