title: Running a leiningen Clojure project in LightTable
body: <p>I'm trying to use Clojure to run my Leiningen project. Even though LightTable says it's connected in the connections pane, it won't execute unless I call the main function manually.</p>
  
  <p><code>project.clj:</code></p>
  
  <pre><code>(defproject lein-test "0.1.0-SNAPSHOT"
    :description "FIXME: write description"
    :url "http://example.com/FIXME"
    :license {:name "Eclipse Public License"
              :url "http://www.eclipse.org/legal/epl-v10.html"}
    :dependencies [[org.clojure/clojure "1.5.1"]]
    :main lein-test.core)
  </code></pre>
  
  <p><code>core.clj:</code></p>
  
  <pre><code>(ns lein-test.core)
  
  (defn -main [&amp; args]
    (println "asdf"))
  </code></pre>
  
  <p>When I eval the entire file with ctrl+shift+enter, I see <code>nil</code> by the <code>ns</code> and nothing in the console. If I add</p>
  
  <pre><code>(-main)
  </code></pre>
  
  <p>then the console shows 'asdf'. <code>lein run</code> in the command prompt yields the expected behavior. What am I missing?</p>