For newbs, I did not see this anywhere, but just discovered it, and it is of immense value. In a REPL, you can just (load-file "path/to/ filename") to load the code you typed into an editor.
On Mar 27, 12:24 am, ultranewb <pineapple.l...@yahoo.com> wrote: > NetBeans w/ Enclosure - > Could get a REPL, couldn't figure out how to do anything else. Result > - uninstalled. > > IntelliJ w/ La Clojure - > Could get a REPL, couldn't figure out how to do anything else. In > particular, I followed some specific instructions from somewhere > (can't remember where) for how to set up a project, edit a source file > (hello world or whatever), and "run" that source file. All I got was > some kind of error. Result - uninstalled. > > Configuring already-owned version of Emacs - > Followed varying instructions from various websites and how-to's - > mostly using elpa to download this and that. Used elpa, but could > never successfully get anything to work afterwards. Result - kept the > install for other projects I am using Emacs for. > > Clojure Box - > Could get a REPL, couldn't figure out how to do anything else (i.e. > Leinegen blah blah). Result - kept the install, as this was the 2nd > most promising solution tried thus far. > > ClojureW - > So far, this is the only thing that "just works" for me. Just > download, add the path to the bin directory, DONE. Can get a REPL, > but more importantly, can easily "run" a source file by doing "clj > sourcefile." The only thing that didn't work was the jline thing > (tried clj -jl per the instructions, and also clj -jline just for the > heck of it, both fail). > > ClojureW UPDATE: Out of the blue, tried clj jline and that seemed to > work as far as running this jline thing. In other words, it didn't > give an error, and when I hit the up arrow, it shows historical > commands. To run a file like this (although in hindsight, I don't > know what that gives you), do: clj cljfile.clj jline > > I guess the optimum solution I see for myself at this point is getting > Clojure Box to talk to ClojureW (i.e. editing a source file with > Clojure Box, then "running" that source inside some Emacs window by > running clj). I'm guessing this would be trivial for the Emacs > experts out there, but if someone wants to point me to a quick > resource on it, I'll try it. > > For the time being, my personal suggestion to any newbs coming along > is to try ClojureW: > > https://bitbucket.org/kasim/clojurew > > Perhaps the link should be posted more prominently somewhere, if it > isn't already? A further suggestion - perhaps Clojure Box could be > rigged to use ClojureW "out of the box." This would give a working > IDE by simply downloading the package and running it. -- 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