Subject: automatically start imaxima using maxima-mode
From: David Ronis
Date: Tue, 30 Jun 2009 13:11:42 -0400
Hi Yasuaki,
We discussed this problem some time ago. Your suggestion to put
(imaxima) into .emacs works, but means that you always have maxima
running when in emacs.
What would be better would be to a) only run imaxima if you're going to
edit a maxima file (e.g., perhaps by playing with the auto-mode-alist);
or b) modifying maxima.el to run imaxima before starting maxima. From
what I can tell (I'm not a lisp person), maxima.el checks to see if
there's a maxima run buffer and, if not, it creates it and runs maxima.
It should be easy to hack this to get it to run imaxma first. (I tried
this by setting maxima-command to imaxima, but this didn't work).
David
On Wed, 2009-07-01 at 01:45 +0900, Yasuaki Honda wrote:
> Hi Nabil,
>
>
> You wrote:
> > (Maxima/Process/Send Buffer), I get an "ordinary" maxima session
> > instead
> > of an imaxima session with nice output.
>
>
> To accomplish this, in addition to your setting, you need to put
> (imaxima)
> in your .emacs file.
>
>
> This is not a general case and not mentioned in the home page.
>
>
> Yasuaki Honda, Chiba, Japan
>
>
>
>
> On 2009/06/28, at 18:51, Nabil Ghodbane wrote:
>
> > hi.
> > find below what i added to my .emacs file following the suggestions
> > from the imaxima page. then in emacs, meta-x imaxima , you will then
> > get the maxima prompt in emacs.
> > hth,
> >
> > (autoload 'maxima-mode "maxima" "Maxima editing mode" t)
> > (autoload 'maxima "maxima" "Running Maxima interactively" t)
> >
> > (require 'cl)
> > (pushnew "/usr/local/share/maxima/5.18.1/emacs" load-path)
> > (autoload 'imaxima "imaxima" "Frontend of Maxima CAS" t)
> > (autoload 'imath "imath" "Interactive Math mode" t)
> > (autoload 'imath-mode "imath" "Interactive Math mode" t)
> >
> >
> > On Sun, Jun 28, 2009 at 5:12 AM, Yasuaki Honda <yhonda at mac.com>
> > wrote:
> > Hi Nils,
> >
> > Sorry for the delay of reponse and I hope this was already
> > resovled.
> > As your setting seems OK, the only thing you should do is to
> > start
> > imaxima before you try to send maxima commands.
> >
> > The easiest way to accomplish this is to put (imaxima) in
> > your .emacs
> > file.
> >
> > best regards,
> >
> > Yasuaki Honda
> >
> > On 2009/06/16, at 6:36, Nils Kanning wrote:
> >
> > > Hi,
> > > I just started using imaxima for emacs.
> > >
> > > If I open a file using maxima-mode and then send this
> > buffer to maxima
> > > (Maxima/Process/Send Buffer), I get an "ordinary" maxima
> > session
> > > instead
> > > of an imaxima session with nice output.
> > >
> > > Is there any way to change this?
> > >
> > > Everything works fine, if I start a imaxima session
> > manually (in
> > > another
> > > buffer) and then do Maxima/Process/Send Buffer.
> > >
> > > The relevant part of my .emacs file looks like this:
> > >
> > > (require 'imaxima)
> > > (autoload 'imaxima "imaxima" "Image support for Maxima."
> > t)
> > > (autoload 'imath-mode "imath" "Interactive Math minor
> > mode." t)
> > > (autoload 'maxima-mode "maxima" "Maxima mode" t)
> > > (setq imaxima-use-maxima-mode-flag t)
> > > (setq auto-mode-alist (append '(("\\.max$" . maxima-mode))
> > > auto-mode-alist))
> > >
> > > Regards
> > > Nils
> > > _______________________________________________
> > > Maxima mailing list
> > > Maxima at math.utexas.edu
> > > http://www.math.utexas.edu/mailman/listinfo/maxima
> >
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
> >
> > _______________________________________________
> > Maxima mailing list
> > Maxima at math.utexas.edu
> > http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima