From 47bad8803f7eb6a3050ece1e88ea8b37f8e0947e Mon Sep 17 00:00:00 2001 From: Justin Gehtland Date: Tue, 26 Sep 2017 13:09:03 -0400 Subject: [PATCH] add support for clj REPL --- config/Clojure/Default.sublime-commands | 8 ++++++++ config/Clojure/Main.sublime-menu | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/config/Clojure/Default.sublime-commands b/config/Clojure/Default.sublime-commands index 5d6cabfd..82f3a8b5 100644 --- a/config/Clojure/Default.sublime-commands +++ b/config/Clojure/Default.sublime-commands @@ -1,4 +1,12 @@ [ + { + "caption": "SublimeREPL: Clj", + "command": "run_existing_window_command", "args": + { + "id": "repl_clj", + "file": "config/Clojure/Main.sublime-menu" + } + }, { "caption": "SublimeREPL: Clojure", "command": "run_existing_window_command", "args": diff --git a/config/Clojure/Main.sublime-menu b/config/Clojure/Main.sublime-menu index 72525b9d..3e698f9b 100644 --- a/config/Clojure/Main.sublime-menu +++ b/config/Clojure/Main.sublime-menu @@ -11,6 +11,24 @@ {"caption": "Clojure", "id": "Clojure", "children":[ + {"command": "repl_open", + "caption": "Clj", + "id": "repl_clj", + "args": { + "type": "subprocess", + "encoding": "utf8", + "cmd": {"windows": ["lein.bat", "repl"], + "linux": ["lein", "repl"], + "osx": ["clj"]}, + "soft_quit": "\n(. System exit 0)\n", + "cwd": {"windows":"c:/Clojure", + "linux": "$file_path", + "osx": "$folder"}, + "syntax": "Packages/Clojure/Clojure.tmLanguage", + "external_id": "clojure", + "extend_env": {"INSIDE_EMACS": "1"} + } + }, {"command": "repl_open", "caption": "Clojure", "id": "repl_clojure",