Does Maxima highlighting still works in Emacs in Windows?
Subject: Does Maxima highlighting still works in Emacs in Windows?
From: Leo Butler
Date: Mon, 16 Dec 2013 23:44:26 GMT
> 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