Permalink
Browse files

Add racket support to Run Script (⌘R)

  • Loading branch information...
1 parent e1d0d6f commit 4c21b46583ef6e8adcfd09b417bbdd9579c6a4eb @robsonpeixoto robsonpeixoto committed with infininight Sep 28, 2014
Showing with 4 additions and 1 deletion.
  1. +3 −1 Commands/Run Script.plist
  2. +1 −0 Syntaxes/Scheme.plist
@@ -14,7 +14,7 @@ require ENV["TM_SUPPORT_PATH"] + "/lib/escape"
TextMate.save_current_document
TextMate::Executor.make_project_master_current_document
-interpreters = ["mzscheme", "csi", "guile", "gosh"]
+interpreters = ["mzscheme", "csi", "guile", "gosh", "racket"]
args = []
args << (ENV["TM_SCHEME"] || interpreters.select{|ii| ENV["PATH"].split(":").any?{|dd| File.executable? File.join(dd, ii)}}.first)
@@ -23,6 +23,8 @@ when "mzscheme"
args << "-e" << '(require (lib "errortrace.ss" "errortrace"))' << "-r"
when "gosh"
# nothing
+when "racket"
+ args << "-r"
else
args << "-s"
end
View
@@ -26,6 +26,7 @@
<array>
<string>scm</string>
<string>sch</string>
+ <string>rkt</string>
</array>
<key>keyEquivalent</key>
<string>^~S</string>

0 comments on commit 4c21b46

Please sign in to comment.