from Edit .m files in Emacs by Eric Ludlam
A major mode for editing .m files under GNU-emacs

MATLAB/Emacs FAQ
MATLAB/Emacs FAQ

MATLAB/Emacs FAQ

1. What is MATLAB mode for Emacs?

MATLAB mode for Emacs consists of Emacs Lisp code that implements a major-mode for Emacs that assists in the editing of MATLAB scripts.

This allows Emacs to be used in place of the MATLAB Editor for editing your MATLAB source code, debugging MATLAB code, and syntax/semantic checking of your MATLAB code with mlint.

The MATLAB mode for Emacs does NOT include "EmacsLink", which was a tool that more tightly integrated MATLAB and Emacs for purposes of debugging M code.

2. Where can I find MATLAB mode for Emacs?

MATLAB mode for Emacs is available at SourceForge.

You can visit the Project Page or the homepage of the matlab-emacs project.

3. What is the best way to download MATLAB mode for Emacs?

MATLAB mode for Emacs is available from a CVS repository on SourceForge. There are two ways to download MATLAB mode for Emacs.

Use CVS to download a copy.

Use the conenient MATLAB script dl_emacs_support to download a copy.

4. What features does MATLAB mode for Emacs support?

The MATLAB/Emacs support files include the following features:

  • matlab-mode - An Emacs major-mode for editing MATLAB programs.
    • Syntax highlighting
    • Smart Indentation engine
    • Smart auto-fill for comments and code
  • matlab-shell - Run MATLAB inside Emacs on Unix like operating systems.
    • Syntax highlighting
    • Persistent command history
    • Command completion
    • Run code from matlab-mode in matlab-shell.
    • GUD support for debugging programs files
  • mlint-mode
    • Use mlint to identify and highlight warnings and errors from mlint.
    • Auto-fix some common errors.
    • Nested function variable highlighting.
  • CEDET support for parsing and smart completion.
  • Code templates.
  • tlc-mode (target language compiler)

Contact us