Version 8.0.3 of package Matlab-Mode has just been released in GNU ELPA. You can now find it in M-x list-packages RET.
Matlab-Mode describes itself as: ==================================== Major mode for MATLAB(R) dot-m files ==================================== More at https://elpa.gnu.org/packages/matlab-mode.html ## Summary: 1 Emacs MATLAB-mode ═══════════════════ [MathWorks] MATLAB® and [GNU Emacs] integration: 1. MATLAB mode, *matlab-ts-mode* or *matlab-mode*, for editing `*.m' files. • Edit MATLAB code with syntax highlighting, indentation (code formatting), and semantic movement. • Lint MATLAB code with fix-it's using the MATLAB Code Analyzer. The *matlab-ts-mode* is a more capable, performant, and accurate than *matlab-mode*. 2. *Code navigation and more* • The [MATLAB Language Server with Emacs], matlabls, provides code navigation, code completion, go to definition, find references, and more. • Imenu support for quickly jumping to function declarations in the current `*.m' or `*.tlc' file. See [doc/matlab-imenu.org]. ## Recent NEWS: 1 Release 8.0.3 Feb-5-2026 ══════════════════════════ This release updates to the latest tree-sitter-matlab grammar which addresses a couple issues in matlab-ts-mode related to indent and font-lock. 2 Release 8.0.2 Jan-31-2026 ═══════════════════════════ This release: 1. Improves robustness of matlab-ts-mode electric indent in Emacs 30.1 build 1 v.s. build 2. Electric indent is now robust to varying behavior from tree-sitter matlab parse tree access. Two different builds of Emacs 30.1 on Debian 12 are producing different results for the identical parse trees created using the same libtree-sitter-matlab.so. We see cases where treesit-node-next-sibling and treesit-node-parent return different results on same parse tree. 2. Updates to tree-sitter-matlab grammar from 2026-01-31. 3 Release 8.0.1 Jan-30-2026 ═══════════════════════════ Minor /electric indent/ fix to correct comma placement in struct field alignment and also to fix non-positional name = value arguments and attributes. 4 Release 8.0.0 Jan-29-2026 ═══════════════════════════ This release updates matlab-ts-mode indent to /electric indent code/. This is sometimes called pretty printing code or formatting code. To indent a MATLAB `*.m' file, ┌──── │ C-x h or M-: (mark-whole-buffer) │ C-M-\ or M-x indent-region └──── See [doc/matlab-code-indent.org - MATLAB Indent (Code Format)] [doc/matlab-code-indent.org - MATLAB Indent (Code Format)] <file:doc/matlab-code-indent.org> 5 Release 7.4.2 Dec 29, 2025 ════════════════════════════ Fix bug in tramp (remote) matlab-shell when matlab is installed in a custom location. 6 Release 7.4.1 Nov 26, 2025 ════════════════════════════ 1. Fix indent bug. In following typing RET after the argument end statement, the indent now goes to the 4th column and not the 8th column: ┌──── │ function test(A) │ arguments │ A │ end │ end └──── 7 Release 7.4.0 Nov 26, 2025 ════════════════════════════ 1. Place the `matlab-*-face' definitions in customize matlab-ts-faces group. 2. Add `M-x matlab-ts-describe-faces' along with menu item ┌──── │ MATLAB -> Describe faces └──── that will bring up a help buffer containing the faces used by matlab-ts-mode. From there you can customize them. This differs from viewing the matlab-ts-faces group in that it contains both matlab-*-faces plus other built-in faces such as font-lock-type-face. This help buffer also contain more information on when the faces are used. 8 Release 7.3.4 Nov 25, 2025 ════════════════════════════ 1. Add the source and build instructions for the libtree-sitter-matlab.SLIB_EXT binaries found in [./matlab-ts-bin] and used by `M-x matlab-ts-grammar-install'. [./matlab-ts-bin] <file:matlab-ts-bin> 9 Release 7.3.3 Nov 23, 2025 ════════════════════════════ 1. Update to latest <https://github.com/acristoffers/tree-sitter-matlab> which improves matlab-ts-mode: matlab-ts-abi14-20251122-90ce9da 10 Release 7.3.2 Nov 21, 2025 ═════════════════════════════ 1. Update to latest <https://github.com/acristoffers/tree-sitter-matlab> which improves matlab-ts-mode. The changes fix parsing errors up through issues 141 in matlab tree-sitter. 11 Release 7.3.1 Nov 14, 2025 ═════════════════════════════ 1. Fixed M-q (fill-paragraph) in comments when there no space after the '%' character. 2. Improved t-utils-view-parse-tree 3. Made matlab-ts-mode show-paren-mode robust to extra `\n' nodes 12 Release 7.3.0 Nov 12, 2025 ═════════════════════════════ 1. Updated matlab-ts-mode to work with tree-sitter-matlab commit 9d16fcf. This fixes many known issues in matlab-ts-mode. 2. Simplified the install of the matlab tree-sitter grammar shared libraries. To enable *matlab-ts-mode* you install `matlab-mode' and then `M-x matlab-ts-grammar-install'. 13 Release 7.2.1 Oct 30, 2025 ═════════════════════════════ 1. In matlab-ts-mode, fix indent involving catch clause with a comment. 14 Release 7.2.0 Oct 29, 2025 ═════════════════════════════ 1. Updated matlab-ts-mode to use latest matlab tree-sitter v1.2.3 branch [abi/14] at [9a4e65d]. This fixes parse on a number of MATLAB language constructs, which is visible behavior improvements, … … [abi/14] <https://github.com/acristoffers/tree-sitter-matlab/tree/abi/14> [9a4e65d] <https://github.com/acristoffers/tree-sitter-matlab/tree/9a4e65df4bb08e2b019ca2ef16b2d8f3d95ce978>
