emacs mode for maxima



 
< Is there any home made emacs mode for maxima? Googling din't help much.

The standard installation of maxima comes with .el files that define
maxima-mode and maxima-script-mode. In the maxima directory you'll find

$ ls interfaces/emacs/emaxima/
emaxima.el  emaxima.lisp  emaxima.sty  Makefile  Makefile.am
Makefile.in  maxima.el  maxima-font-lock.el

Also, here is the relevant code to put in ~/.emacs:

(autoload 'maxima-mode "maxima" "Major mode for writing Maxima programs" t)
(autoload 'maxima "maxima" "Run Maxima interactively" t)
(setq load-path (cons "~/maxima/maxima-5.16.3/interfaces/emacs/emaxima" load-path))
(setq load-path (cons "~/maxima/maxima-5.16.3/interfaces/emacs/misc" load-path))
(setq auto-mode-alist (cons '("\\.ma[cx]" . maxima-mode) auto-mode-alist))

< 
< Also, since I'm here, is it possible to pass a lambda function as
< argument to another function & call it from the latter?
 
I'm not sure if this is what you want, but

(%i75) f(x,y) := apply(x , [y]);
(%o75)                     f(x, y) := apply(x, [y])
(%i76) f(lambda([u],u^2),y);
                                       2
(%o76)                                y

Cheers,
Leo

-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.