An emacs matlab mode based on the classic one.
- First use or open
.m
file can be slow because it needs to open a background matlab process. - You need to set
matlab-server-executable
to where your matlab exec.
-
Easy to view document of word at cursor (default keybinding: Ctrl-c + h).
-
Jump to definition (default keybinding: Ctrl-c + s). Currently, this only helps open the souce file (can not go to the definition of the function). If it does not work, it may be becasue you have not added the file's folder into matlab workspace.
- Install dependencies like
s.el
,flycheck
andcompany-mode
. - Copy the code to somewhere
- Add the following to the initialization file
(setq matlab-server-executable "/path/to/matlab/binary")
(add-to-list 'load-path "/path/to/matlab-mode/")
(require 'matlab-mode)
(matlab-mode-common-setup)
To use the functionalities, one must first run M-x matlab-start
to start the background process.
Since matlab is a bit slow to start, you may need to wait a few seconds.
Recommend to turn-off automatic complete in company-mode and do the completion when needed.
matlab.el
is mostly copied from the "classic" matlab mode.
- debug?