### Node.js REPL key binding Source: https://github.com/wuub/sublimerepl/wiki/Creating-shortcuts-for-REPLs Example configuration for a Node.js REPL shortcut using the run_existing_window_command in the user key bindings file. ```json { "keys": ["ctrl+",", "n"], "command": "run_existing_window_command", "args":{ "id": "repl_node", "file": "config/NodeJS/Main.sublime-menu" } ``` -------------------------------- ### Reference Lua REPL in Command Palette Source: https://github.com/wuub/sublimerepl/blob/master/doc/index.rst This command configuration file uses 'run_existing_window_command' to reference the Lua REPL configuration defined in the menu file by its ID and filename. ```default [ { "caption": "SublimeREPL: Lua", "command": "run_existing_window_command", "args": { /* Note that both these arguments are used to identify the file above and load the REPL configuration from it */ "id": "repl_lua", "file": "config/Lua/Main.sublime-menu" } } ] ``` -------------------------------- ### Define Lua REPL in Menu Configuration Source: https://github.com/wuub/sublimerepl/blob/master/doc/index.rst This configuration file adds a Lua entry to the Tools > SublimeREPL menu, defining the command, arguments, and syntax for the subprocess-based REPL. ```default [ { "id": "tools", "children": [{ "caption": "SublimeREPL", "mnemonic": "R", "id": "SublimeREPL", "children": [ {"command": "repl_open", "caption": "Lua", "id": "repl_lua", "mnemonic": "L", "args": { "type": "subprocess", "encoding": "utf8", "cmd": ["lua", "-i"], "cwd": "$file_path", "external_id": "lua", "syntax": "Packages/Lua/Lua.tmLanguage" } } ] }] } ] ``` -------------------------------- ### Configure Clojure Leiningen PATH Source: https://github.com/wuub/sublimerepl/blob/master/doc/index.rst Add this setting to your SublimeREPL User settings if your lein binary is not in the system-global PATH. ```default "default_extend_env": {"PATH": "{PATH}:/home/myusername/bin"} ``` -------------------------------- ### Configure default_extend_env for custom PATH Source: https://github.com/wuub/sublimerepl/blob/master/doc/index.rst Use this configuration to add a directory to the PATH environment variable when SublimeREPL cannot locate the required binary. ```default { ... "default_extend_env": {"PATH": "{PATH}:/home/myusername/bin"} ... } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.