Re: Trying to set up clojure... and failing

2011-06-19 Thread Mark Rathwell
I think lein runs 'deps' with the 'repl' task, but just in case you may also want to include a 'lein deps' in step 3: 3. Get a repl to play around with: cd first-time lein deps lein repl On Mon, Jun 20, 2011 at 2:17 AM, Mark Rathwell wrote: > > Agreed, you should definitely start with lein. I

Re: Trying to set up clojure... and failing

2011-06-19 Thread Mark Rathwell
Agreed, you should definitely start with lein. If you have ~/bin on your path (and curl): 1. Get lein: curl -L https://github.com/technomancy/leiningen/raw/stable/bin/lein > ~/lein chmod a+x ~/lein 2. Create a new project with lein (in current working directory) lein new first-time 3. Get a re

Re: clojure-jack-in & slime-highlight-edits

2011-06-19 Thread Fred Concklin
Phil Hagelberg writes: > Fred Concklin writes: > >> Clearly the solution is to turn off slime-highlight-edits. Although why >> is slime bootstrapped on every jack-in? > > Future versions will try to detect if it's already been bootstrapped and > skip that step if so. But this functionality is st

Re: Trying to set up clojure... and failing

2011-06-19 Thread Sean Corfield
On Sun, Jun 19, 2011 at 5:18 PM, Peter Tabatt wrote: > Hey guys, I downloaded the clojure file from github, unzipped it and > can't go any further. Any ideas? I strongly recommend starting with Leiningen instead of the raw Clojure JAR files. https://github.com/technomancy/leiningen If you alrea

Re: clojure-jack-in & slime-highlight-edits

2011-06-19 Thread Phil Hagelberg
Fred Concklin writes: > Clearly the solution is to turn off slime-highlight-edits. Although why > is slime bootstrapped on every jack-in? Future versions will try to detect if it's already been bootstrapped and skip that step if so. But this functionality is still new, so I aimed for the simples

clojure-jack-in & slime-highlight-edits

2011-06-19 Thread Fred Concklin
I'm using clojure-jack-in with slime-highlight-edits in my slime config (.emacs). The problem is that the after slime is bootstrapped by jack-in the highlights show up in every .clj file I'm editing, regardless of whether or not it is in the project with the slime-connection. Thoughts/opinions/fi

Re: #= reader macro

2011-06-19 Thread Anthony Grimes
Check out Seesaw . It's a Clojure Swing wrapper that really cuts back on boilerplate, and will probably serve you better than rolling your own making-swing-manageable macros. Happy hacking! -- You received this message because you are subscribed to the Google

Follow-up: Java dependency injection in Clojure

2011-06-19 Thread Luc Prefontaine
Hi all, just a short follow up about Boing. Version 1.2 is out, there's a new Java API in this version. You can define beans in Clojure, load the definitions as a resource and instantiate them from Java. The Wiki details how to use it. This release should be the last release for a few months as

Re: Trying to set up clojure... and failing

2011-06-19 Thread Ken Wesson
On Sun, Jun 19, 2011 at 8:18 PM, Peter Tabatt wrote: > Hey guys, I downloaded the clojure file from github, unzipped it and > can't go any further. Any ideas? > > I ran (the command in the Quick start section) this: > > Peter-Tabatts-MacBook-Pro:clojure ptabatt$ unzip richhickey-clojure- > clr-clo

Trying to set up clojure... and failing

2011-06-19 Thread Peter Tabatt
Hey guys, I downloaded the clojure file from github, unzipped it and can't go any further. Any ideas? I ran (the command in the Quick start section) this: Peter-Tabatts-MacBook-Pro:clojure ptabatt$ unzip richhickey-clojure- clr-clojure-1.3.0-alpha7-8-g84e3baa.zip Archive: richhickey-clojure-clr-

Re: Clojure and swedish characters on windows...

2011-06-19 Thread Andreas Liljeqvist
Thank you Phil, that fixed it. 2011/6/19 Phil Hagelberg > Andreas Liljeqvist writes: > > > M-x: clojure-jack-in > > > > users>ä > > > > Debugger entered: nil > > (condition-case error (slime-net-read) (error (debug) > > (slime-net-close process t) (error "net-read error: %S" error))) > > sl

Re: Clojure and swedish characters on windows...

2011-06-19 Thread Phil Hagelberg
Andreas Liljeqvist writes: > M-x: clojure-jack-in > > users>ä > > Debugger entered: nil >   (condition-case error (slime-net-read) (error (debug) > (slime-net-close process t) (error "net-read error: %S" error))) >   slime-net-read-or-lose(#) >   slime-process-available-input(#) >   slime-net-fil

Re: User.clj and set!

2011-06-19 Thread Andreas Liljeqvist
Thanks for the answer. Would there be any problems associated with changing the root bindings? 2011/6/19 David Powell > > On Sun, Jun 19, 2011 at 11:58 AM, Andreas Liljeqvist wrote: > >> I am trying to set! *printlength* to something not insanity inducing. >> Problem is that user.clj doesn't su

Clojure and swedish characters on windows...

2011-06-19 Thread Andreas Liljeqvist
M-x: clojure-jack-in users>ä Debugger entered: nil (condition-case error (slime-net-read) (error (debug) (slime-net-close process t) (error "net-read error: %S" error))) slime-net-read-or-lose(#) slime-process-available-input(#) slime-net-filter(# "19(:debug-activate 1 1 nil)") recu

Re: Screencast: Clojure + Emacs + slime + swank + cake + Overtone

2011-06-19 Thread looselytyped
Agreed. This is a very informative screencast. Thanks Sam. Raju On Jun 17, 3:21 pm, John Toohey wrote: > Excellent screencast. > > > > > > > > > > On Thu, Jun 16, 2011 at 11:16, Sam Aaron wrote: > > Hi there, > > > I just finished making a screencast primarily for new Overtone users on how >

Are the docs on clojure.org always kept up to date?

2011-06-19 Thread James Keats
Hi all, Clojure seems to be a language in a bit of flux (eg, defstruct vs defrecord), is there a canonical set of docs that keeps all of this up- to-date? are the docs on clojure.org always kept up to date? is there a place to track succinct notes on language evolution, conventions and community b

Re: Why should I use emacs instead of netbeans?

2011-06-19 Thread James Keats
On Jun 18, 4:08 pm, Stefan Kamphausen wrote: > Hi, > > these modern IDEs really do a tremendous job at organizing projects and > providing additional information at programming time. It's just, their > text-editor components suck. > > If you are a Java developer, it's probably better to stay awa

clojure-test-mode

2011-06-19 Thread Gregg Reynolds
Hi folks, I somehow managed to get clojure-test-mode working, so I can execute C-c C-, from a test file and see the test results in the slime repl. However, in the mini-buffer I get the following message: error in process filter: Invalid read syntax: "#" Any idea what that means? It doesn't se

Re: Allow Data Structure to Be Called as Function

2011-06-19 Thread Ken Wesson
On Sat, Jun 18, 2011 at 10:47 AM, David Nolen wrote: > On Sat, Jun 18, 2011 at 4:44 AM, Sam Aaron wrote: >> >> Is it possible to use this approach to create a callable record which can >> take a variable number of arguments? >> >> I can't get the following to work: >> >> (defrecord Foo [a] >>  cl

Re: User.clj and set!

2011-06-19 Thread David Powell
On Sun, Jun 19, 2011 at 11:58 AM, Andreas Liljeqvist wrote: > I am trying to set! *printlength* to something not insanity inducing. > Problem is that user.clj doesn't support set! > Vars normally only have a global root binding. When you use (binding [varname newvalue]) the var gets given a threa

#= reader macro

2011-06-19 Thread Ralph
I just "discovered" the "#=" reader macro from a post on Stackoverflow and it solves a problem. How likely is this reader macro to become an official (documented) part of the language? How about deprecated or changed behavior? I am trying to use Stuart Sierra's "do-template" inside a "defprotocol"

User.clj and set!

2011-06-19 Thread Andreas Liljeqvist
I am trying to set! *printlength* to something not insanity inducing. Problem is that user.clj doesn't support set! I found some old discussion about adding post-repl init, did anything come of this? There exists :repl-init in Lein, but it only takes a symbol. I would like to have one config for

Re: Help organizing code and namespaces

2011-06-19 Thread Benjamin Teuber
Hi, this should be what you need: http://stackoverflow.com/questions/4690758/splitting-a-clojure-namespace-over-multiple-files On Jun 18, 3:52 pm, Matt Mitchell wrote: > Hi, > > I have 3 namespaces, each with functions that relate to the name of the ns: > > core -- contains config and *server* v

Re: Detailed Macro Quoting Question

2011-06-19 Thread Benjamin Teuber
Some remarks: > (defmacro make-msg-ewrapper [method-names] maybe use [& method-names] so people can write (make-msg-wrapper a- method-name another-method-name) >   `(proxy [EWrapper] [] >      ~@(map >         (fn [method-name] >           (let [args (gensym "args")] this line seems completely us