4
votes

Currently I am using LightTable to run clojure projects, and with Leiningen I can specify a version for a project. However, for .clj files that are not part of a project, it seems the LightTable REPL says the clojure version is 1.5.1.

I would like to set it to 1.7.0 for all .clj files, is there a way to do this?

1

1 Answers

5
votes

It is described in LightTable FAQ:

How do I set the default Clojure version when running Instarepl outside of the context of a Clojure project?

Update plugins/clojure/runner/resources/project.clj by adding/changing :dependencies [[org.clojure/clojure "x.x.x" ]] where x.x.x is of course the Clojure version you want to use by default in your Instarepl sessions whenever LightTable doesn't run in the context of a Clojure project (i.e. double clicking on a shortcut on the desktop to run LightTable).

Per http://docs.lighttable.com/#plugins-directory, running the command App: Light Table version to get plugin directory.