All the followings in .emacs file
[coolcode linenum="off"]
;; Edit the path in the following line to reflect the
;; actual location of the MATLAB root directory on your system.
(add-to-list 'load-path "/usr/local/matlab7/java/extern/EmacsLink/lisp")
(autoload 'matlab-eei-connect "matlab-eei"
"Connects Emacs to MATLAB's external editor interface.")
(autoload 'matlab-mode "matlab" "Enter Matlab mode." t)
(setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist))
(autoload 'matlab-shell "matlab" "Interactive Matlab mode." t)
(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)
(imenu-add-to-menubar "Find")) ; where auto-fill should wrap
(add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
[/coolcode]
Under windows, change the third line in _emacs with:
[coolcode linenum="off"] c:/matlab/java/extern/EmacsLink/lisp
[/coolcode]
No comments:
Post a Comment