Matlabmodus i Emacs

Den er ikke en del av standardoppsettet slik at de som vil bruke den antageligvis ønsker å legge noe slikt inn i sin .emacs fil:

(autoload 'matlab-mode "matlab" "Enter Matlab mode." t)
(setq auto-mode-alist (cons '("\\.m$" . matlab-mode) auto-mode-alist))


Tilleggsfunksjoner kan legges inn i matlab-mode-hook. Feks:

(defun my-matlab-mode-hook ()
       (setq matlab-indent-function t)	; if you want function bodies indented
       (setq fill-column 76)		; where auto-fill should wrap
       (font-lock-mode)                 ; hvis du vil ha font-lock farger
       (turn-on-auto-fill))
(setq matlab-mode-hook 'my-matlab-mode-hook)


Det finnes også et eget matlab-shell som kan startes med M-x matlab-shell hvis du også legger inn

(autoload 'matlab-shell "matlab" "Interactive Matlab mode." t)
(defun my-matlab-shell-mode-hook () '())