Skip to content

Instantly share code, notes, and snippets.

@DDuarte
Created June 5, 2012 15:32
Show Gist options
  • Save DDuarte/2875705 to your computer and use it in GitHub Desktop.
Save DDuarte/2875705 to your computer and use it in GitHub Desktop.
Sublime Text 2 + SublimeREPL + Maxima

Data/Packages/SublimeREPL/config/Maxima/Default.sublime-commands:

[
    {
        "caption": "SublimeREPL: Maxima",
        "command": "run_existing_window_command", "args":
        {
            "id": "repl_maxima",
            "file": "config/Maxima/Main.sublime-menu"
        }
    }
]

Data/Packages/SublimeREPL/config/Maxima/Main.sublime-menu:

[
     {
        "id": "tools",
        "children":
        [{
            "caption": "SublimeREPL",
            "mnemonic": "r",
            "id": "SublimeREPL",
            "children":
            [
                {"command": "repl_open", 
                 "caption": "Maxima",
                 "id": "repl_maxima",
                 "mnemonic": "",
                 "args": {
                    "type": "subprocess",
                    "external_id": "maxima",
                    "encoding": "utf8",
                    "cmd": {
                            "windows": ["maxima.bat"],
                            "linux": ["maxima"],
                            "mac-os": ["maxima"]},
                    "cwd": "$file_path"
                    }
                }
            ]   
        }]
    }
]

Maxima.bat needs to be in your system's PATH

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