Skip to content

Instantly share code, notes, and snippets.

@carlh
Created January 11, 2013 02:35
Show Gist options
  • Save carlh/4507534 to your computer and use it in GitHub Desktop.
Save carlh/4507534 to your computer and use it in GitHub Desktop.
SublimeREPL config files for SML. Allows you to launch a functional REPL for SML that runs inside SublimeREPL. This assumes that you've installed SML at the default location. Dependencies: - SML (http://www.smlnj.org/) - SublimeREPL (https://github.com/wuub/SublimeREPL) - Language Definition (https://github.com/seanjames777/SML-Language-Definition
[
{
"caption": "SublimeREPL: SML",
"command": "run_existing_window_command", "args":
{
"id": "repl_sml",
"file": "config/SML/Main.sublime-menu"
}
}
]
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{"command": "repl_open",
"id": "repl_sml",
"caption": "SML",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["/usr/local/smlnj-110.75/bin/sml", "$file"],
"cwd": "$file_path",
"syntax": "Packages/User/SML.tmLanguage",
"external_id": "sml",
"extend_env": {"NODE_DISABLE_COLORS": "1"}
}
}
]
}]
}
]
@wonbyte
Copy link

wonbyte commented Jun 20, 2014

What would the proper syntax be for a windows "cmd" path of C:\Program Files (x86)\SMLNJ\bin? I keep getting a sublime syntax error. Help is much appreciated.

@akrueger
Copy link

akrueger commented Apr 2, 2015

What would be an example of using a file? Does the filename go as the second element of the "cmd" and the path in "cwd" ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment