1 This is taken from matlab.el.
2 Information can also be found at http://www.imm.dtu.dk/~kas/software/emacs/
6 ;; Put the this file as "matlab.el" somewhere on your load path, then
7 ;; add this to your .emacs or site-init.el file:
9 ;; (autoload 'matlab-mode "matlab" "Enter MATLAB mode." t)
10 ;; (setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist))
11 ;; (autoload 'matlab-shell "matlab" "Interactive MATLAB mode." t)
13 ;; User Level customizations (You need not use them all):
14 ;; (setq matlab-indent-function t) ; if you want function bodies indented
15 ;; (setq matlab-verify-on-save-flag nil) ; turn off auto-verify on save
16 ;; (defun my-matlab-mode-hook ()
17 ;; (setq fill-column 76)) ; where auto-fill should wrap
18 ;; (add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
19 ;; (defun my-matlab-shell-mode-hook ()
21 ;; (add-hook 'matlab-shell-mode-hook 'my-matlab-shell-mode-hook)
23 ;; If you are using a version of MATLAB with the Desktop enabled,
24 ;; you may need to add this:
26 ;; (setq matlab-shell-command-swithes '("-nojvm"))
28 ;; Please read the mode help for matlab-mode for additional
29 ;; configuration options.
31 ;; Syntax highlighting:
32 ;; To get font-lock try adding this for older emacsen:
34 ;; Or for newer versions of Emacs:
35 ;; (global-font-lock-mode t)
36 ;; To get hilit19 support try adding:
37 ;; (matlab-mode-hilit)
39 ;; This package requires easymenu, tempo, and derived.
40 ;; This package will optionally use custom, shell, and gud.
41 ;; This package supports language specific extensions in imenu, func-menu,
42 ;; speedbar, font-lock, and hilit19.