Skip to content

Instantly share code, notes, and snippets.

Created November 18, 2012 04:31
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# Copy the following and place it a file called Leiningen.sublime-build in the Sublime user packages folder (~/.config/sublime-text-2/Packages/User on Linux).
# Select this as the build system for the project using Tools/Build System/Leiningen.
# You can then bring up the Sublime Command Palette (ctrl+shift+P on Windows/Linux) and issue any of the commands # (build, documentation, clean, run, test, etc). By default, build is bound to ctrl+b and run to ctrl+shift+b.
"cmd": ["lein", "compile", ":all"],
"working_dir": "$project_path",
"variants": [
{ "cmd": ["lein", "marg", "-m", "-d", "docs"],
"name": "Documentation"
{ "cmd": ["lein", "clean"],
"name": "Clean"
{ "cmd": ["lein", "run"],
"name": "Run"
{ "cmd": ["lein", "test"],
"name": "Test"
{ "cmd": ["lein", "retest"],
"name": "Re-test"
{ "cmd": ["lein", "uberjar"],
"name": "Uberjar"
{ "cmd": ["lein", "jar"],
"name": "Jar"
{ "cmd": ["lein", "check"],
"name": "Check"
Copy link

Thanks for this!
NB with the #comment lines in, it errors -- can you move the comments out the file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment