Running Maxima with Slime



Another solution (which I use) goes as follows.

(1) Add Maxima to your list of lisp implementations. Here it looks like

        (setf
         slime-lisp-implementations
         '((sbcl
            ("/usr/bin/sbcl") :coding-system utf-8-unix)

           (maxima
            ("sbcl"
             "--core"
             "/home/rupert/src/not-mine/maxima/src/binary-sbcl/maxima.core")))

    Obviously, if you're using something other than sbcl, you're going
    to have to do something slightly different.

(2) Now call slime with a negative prefix argument: "M - slime". This
    lets you select Maxima as your implementation (with tab completion)
    You'll get something like the following

        ; SLIME 2011-09-13
        CL-USER> 

(3) Start Maxima proper by calling (run), then hit C-c C-c to send an
    error and choose the "Abort" option (it's choice #4 here)

        CL-USER> (run)
        Maxima 5.25post http://maxima.sourceforge.net
        using Lisp SBCL 1.0.52.0.debian
        Distributed under the GNU Public License. See the file COPYING.
        Dedicated to the memory of William Schelter.
        The function bug_report() provides bug reporting information.
        (%i1) ; Evaluation aborted on NIL.
        MAXIMA> 

    Doing this makes sure that all the one-time setup stuff that Maxima
    does to sort out paths and loading and suchlike has been done.

(4) Play with your "Maximized" lisp environment. To get a normal maxima
    command line, just call (run) again. Unfortunately, tab completion
    and the like won't work, but otherwise it's perfectly workable. (But
    irritatingly orangey red on my emacs).

    Don't forget #$ $:

        MAXIMA> #$1+x$
        
        ((MPLUS SIMP) 1 $X)

     It'll save you an awful lot of typing '()...

Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20111104/b2290b16/attachment-0001.pgp>;