CLOJURE – File User.clj Where should I go?

I am trying to set up the proto-repl atom-editor package, obviously it needs a file user.clj to exist somewhere – I think this is some leiningen init file.

Where should I create this file?

If found, Clojure will load the file user.clj from the classpath. In the default leinengen project , src/ will be on the classpath, so if you create src/user.clj, the contents of the file will be loaded into the context of the user namespace.

user is the default naming for clojure repl Space, but some leiningen projects will override it. To access the definition in user.clj, you need to pull the user into scope (using require or use) or make sure that the user is your starting namespace.

I am trying to set up the proto-repl atom-editor package, obviously it needs a file user.clj to exist somewhere – I think this is some leiningen init file.

Where should I create this file?

If found, Clojure will load the file user.clj from the classpath. In the default leinengen project, src/ will be on the classpath, so if you create src/user.clj, the content of the file will be loaded into the context of the user namespace.

user is the default namespace of clojure repl, but some leiningen projects will override it. To access The definition in user.clj, you need to pull the user into the scope (using require or use) or make sure that the user is your starting namespace.

Leave a Comment

Your email address will not be published.