Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Foredoomed
Created November 18, 2012 04:31
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Foredoomed/4103540 to your computer and use it in GitHub Desktop.
Save Foredoomed/4103540 to your computer and use it in GitHub Desktop.
Leiningen.sublime-build
# 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"
}
]
}
@chrisfcarroll
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