Example 1: scheme tmLanguage
{
"shell_cmd": "lua $file $file_base_name",
"working_dir" : "$folder",
"file_regex": "^(?:lua:)?[\t ](...*?):([0-9]*):?([0-9]*)",
"selector": "source.lua"
}
Example 2: scheme tmLanguage
{
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true
}
Example 3: scheme tmLanguage
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "R",
"id": "SublimeREPL",
"children":
[
{"caption": "Scheme",
"id": "Scheme",
"children":[
{"command": "repl_open",
"caption": "Scheme",
"id": "repl_scheme",
"mnemonic": "S",
"args": {
"type": "subprocess",
"encoding": "utf8",
"external_id": "scheme",
"cmd": {"linux": ["scheme"],
"osx": ["scheme"],
"windows": ["scm", "-f", "$file_basename"]},
"soft_quit": "\nexit\n",
"cwd": "$folder",
"cmd_postfix": "\n",
"extend_env": {"INSIDE_EMACS": "1"},
"syntax": "Packages/sublime-scheme-syntax/Scheme.tmLanguage"
}
},
{"command": "repl_open",
"caption": "Gauche",
"id": "repl_gauche",
"mnemonic": "G",
"args": {
"type": "subprocess",
"encoding": "utf8",
"external_id": "gauche",
"cmd": {"linux": ["gosh", "-i"],
"osx": ["gosh", "-i"],
"windows": ["gosh", "-i"]},
"soft_quit": "\n(exit)\n",
"cwd": "$folder",
"cmd_postfix": "\n",
"extend_env": {"INSIDE_EMACS": "1"},
"syntax": "Packages/Gauche/Gauche.tmLanguage"
}
},
{"command": "repl_open",
"caption": "Petite Chez Scheme",
"id": "repl_petite",
"mnemonic": "P",
"args": {
"type": "subprocess",
"encoding": "utf8",
"external_id": "petite",
"cmd": {"linux": ["petite"],
"osx": ["petite"],
"windows": ["petite"]},
"soft_quit": "\n(exit)\n",
"cwd": "$folder",
"cmd_postfix": "\n",
"extend_env": {"INSIDE_EMACS": "1"},
"syntax": "Packages/sublime-scheme-syntax/Scheme.tmLanguage"
}
}
]}
]
}]
}
]
Example 4: scheme tmLanguage
[
{
"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
{
"keys":["alt+r"],
"caption": "SublimeREPL: Scheme",
"command": "run_existing_window_command", "args":
{
"id": "repl_scheme",
"file": "config/Scheme/Main.sublime-menu"
}
}
]