Skip to content

Commit

Permalink
Add racket support to Run Script (⌘R)
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonpeixoto authored and infininight committed Oct 2, 2014
1 parent e1d0d6f commit 4c21b46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Commands/Run Script.plist
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions Syntaxes/Scheme.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<array>
<string>scm</string>
<string>sch</string>
<string>rkt</string>
</array>
<key>keyEquivalent</key>
<string>^~S</string>
Expand Down

0 comments on commit 4c21b46

Please sign in to comment.