The Emacs mode for Mathemagix |
To edit mathemagix code
with emacs, the mmx mode can be
used. It features automatic indentation and syntax highlighting. The
necessary Emacs code is available in the file
mmxlight/emacs/mmx-mode.el
in the Mathemagix source distribution and can be
installed as follows:
cp mmx/mmxlight/emacs/mmx-mode.el $HOME/.emacs.d |
The following should be added in the file .emacs in
order to automatically activate the Mathemagix
mode when loading a file with suffix .mmx or .amx:
(setq load-path
(append load-path (list (expand-file-name "~/.emacs.d"))))
(setq auto-mode-alist
(append auto-mode-alist '(("\\.mmx\\|\\.amx" . mmx-mode))))
(autoload 'mmx-mode
"mmx-mode.el" "Major mode for editing Mathemagix files" t) |
© 2012 Joris van der Hoeven, Grégoire Lecerf
Permission is granted to copy, distribute and/or modify this document
under the terms of the
GNU General Public License. If you
don't have this file, write to the Free Software Foundation, Inc., 59
Temple Place - Suite 330, Boston, MA 02111-1307, USA.