The main resource for Matlab is the Mathworks support web site, but there are lots of other good places to look for information.
;; Matlab mode (autoload 'matlab-mode "~/emacs/lisp/matlab" "Enter Matlab mode." t) (setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist)) ;; User Level customizations: (setq matlab-indent-function t) ; if you want function bodies indented ;; (setq matlab-verify-on-save-flag nil) ; turn off auto-verify on save (defun my-matlab-mode-hook () (setq fill-column 76) ; where auto-fill should wrap (matlab-mode-hilit) ; Turn hilit on (setq matlab-indent-level 4) ; Set matlab indentation ) (add-hook 'matlab-mode-hook 'my-matlab-mode-hook)