Does Maxima highlighting still works in Emacs in Windows?
Subject: Does Maxima highlighting still works in Emacs in Windows?
From: -
Date: Tue, 17 Dec 2013 11:55:29 +0000
Thanks, Leo,
Now my config in .emcas is:
(add-to-list 'load-path "C:/Program
Files/Maxima-5.31.2/share/maxima/5.31.2/emacs")
(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'imaxima "imaxima" "Frontend for maxima with Image support" t)
(autoload 'maxima "maxima" "Maxima interaction" t)
(autoload 'imath-mode "imath" "Imath mode for math formula input" t)
(setq imaxima-use-maxima-mode-flag t)
* (add-to-list 'auto-mode-alist '("\\.ma[cx]" . maxima-mode))*
http://www.emacswiki.org/emacs/MaximaMode does not include the last line.
That is why I can not get mac files automatically highlighted. I have now
updated that wiki item.
On Mon, Dec 16, 2013 at 11:44 PM, Leo Butler <l_butler at users.sourceforge.net
> wrote:
> > Date: Mon, 16 Dec 2013 20:43:36 +0000
> > From: - <mleoking at gmail.com>
> >
> > I have tried to find some relevant docs on how to highlight maxima .mac
> > code in Emacs on Windows XP.
> >
> > This one for example:
> http://symaxx.sourceforge.net/MaximaMode_in_Emacs.html
>
> That is a pretty old page.
> See: http://www.emacswiki.org/emacs/MaximaMode
>
> >
> > However, I found no workable solutions.
> >
> > The Emacs I am using is 24.3.
> >
> > Is anyone still using maxima in Emacs?
>
> Most definitely. There are two distinct modes,
>
> maxima-mode -- for editing .mac files
> inferior-maxima-mode -- for running a maxima session
>
> and there is also
>
> imaxima-mode -- a wxmaxima-like interface in emacs
>
> Here is what I put in my .emacs file to use the first two modes. This
> is pretty much identical to the emacswiki info I referred to above.
>
> (autoload 'maxima-mode "maxima" "Major mode for writing Maxima programs" t)
> (autoload 'maxima "maxima" "Run Maxima interactively" t)
>
> (setq maxima-command "path/to/maxima")
> (setq maxima-args '("--lisp=sbcl"))
>
> (add-to-list 'load-path "path/to/interfaces/emacs/emaxima")
> (add-to-list 'auto-mode-alist '("\\.ma[cx]" . maxima-mode))
>
> That's all you need.
>
> Leo
>