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 Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require ENV["TM_SUPPORT_PATH"] + "/lib/escape"
TextMate.save_current_document TextMate.save_current_document
TextMate::Executor.make_project_master_current_document TextMate::Executor.make_project_master_current_document
interpreters = ["mzscheme", "csi", "guile", "gosh"] interpreters = ["mzscheme", "csi", "guile", "gosh", "racket"]
args = [] args = []
args << (ENV["TM_SCHEME"] || interpreters.select{|ii| ENV["PATH"].split(":").any?{|dd| File.executable? File.join(dd, ii)}}.first) 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" args << "-e" << '(require (lib "errortrace.ss" "errortrace"))' << "-r"
when "gosh" when "gosh"
# nothing # nothing
when "racket"
args << "-r"
else else
args << "-s" args << "-s"
end end
Expand Down
1 change: 1 addition & 0 deletions Syntaxes/Scheme.plist
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<array> <array>
<string>scm</string> <string>scm</string>
<string>sch</string> <string>sch</string>
<string>rkt</string>
</array> </array>
<key>keyEquivalent</key> <key>keyEquivalent</key>
<string>^~S</string> <string>^~S</string>
Expand Down

0 comments on commit 4c21b46

Please sign in to comment.