Create Lisp Code in SublimeText2

How to build and run shared lisp in ST2 on mac os? I know about SLIME and Emacs, but I'm interested in ST

+3
source share
3 answers

First you need to install an interpreter, in my case I used sbcl .

Once you have established that it is prety simple. On ST2, go to Settings / Package Overview , go to Lisp, add a new Lisp.sublime-settings file with:

{
    "cmd": ["sbcl", "--script", "$file"],
    "working_dir": "${project_path:${folder}}",
    "selector": "source.lisp",
    "osx":
    {
        "cmd": ["/opt/local/bin/sbcl", "--script", "$file"]
    },
    // exemple in windows with CLISP
    "windows":
    {
        "cmd": ["clisp", "$file"]
    }
    // exemple in windows with SBCL
    // "windows":
    // {
    //  "cmd": ["sbcl", "--script", "$file"]
    // }
}
+5
source

In windows, I was able to use REPL by combining GNU Common Lisp and the SublimeREPL package .

Now I do not know if this is possible on OSX, but I would be very surprised if this were not so.

Lisp REPL SublimeREPL, , .

+3

, Lisp Mac, Clozure CL :

http://ccl.clozure.com/manual/chapter5.1.html#ccl-ide-introduction

I haven't used it yet, but it's probably worth the chance.

0
source

All Articles