Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aviflax/53342ae9f07cddea824828ebc53ce288 to your computer and use it in GitHub Desktop.
Save aviflax/53342ae9f07cddea824828ebc53ce288 to your computer and use it in GitHub Desktop.
[
// // Evaluate
{"keys": ["ctrl+enter"],
"command": "clojure_sublimed_eval",
"context": [{"key": "selector", "operator": "equal", "operand": "source.clojure"}]},
// // Evaluate Buffer
{"keys": ["ctrl+b"],
"command": "clojure_sublimed_eval_buffer",
"context": [{"key": "selector", "operator": "equal", "operand": "source.clojure"}]},
// // Interrupt Pending Evaluations
{"keys": ["ctrl+c"],
"command": "clojure_sublimed_interrupt_eval",
"context": [{"key": "selector", "operator": "equal", "operand": "source.clojure"}]},
// // Toggle Info
{"keys": ["ctrl+i"],
"command": "clojure_sublimed_toggle_info",
"context": [{"key": "selector", "operator": "equal", "operand": "source.clojure"}]},
// // Clear Evaluation Results
{"keys": ["ctrl+l"],
"command": "clojure_sublimed_clear_evals",
"context": [{"key": "selector", "operator": "equal", "operand": "source.clojure"}]},
// // Look for .nrepl-port file and try connection to port in it
{"keys": ["ctrl+j"],
"command": "clojure_sublimed_connect_nrepl_jvm",
"args": {"address": "auto"}},
{"keys": ["ctrl+t"],
"command": "clojure_sublimed_eval_code",
"args": {"code": "(let [{:keys [fail error] :as res} (clojure.test/run-tests)] , (if (or (pos? fail) (pos? error)) , (str (clojure.string/join (repeat 10 \"🚨\")) \" \" res) , \"✅\"))"}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment