1. cedet
cvs -d:pserver:anonymous@cedet.cvs.sourceforge.net:/cvsroot/cedet login
cvs -z3 -d:pserver:anonymous@cedet.cvs.sourceforge.net:/cvsroot/cedet co -P cedet
或者可以直接用 ahei DEA 中已经编译好的 cedet。 关于DEA 还可以看这里。
cd cedet
touch `find . -name Makefile` (非cvs版本不需要这个)
a) make
或
b) make EMACS=<your favorite emacs>
或
c) make MAKEINFO=/usr/local/bin/makeinfo
或
d) make MAKEINFO=echo
如果编译过程中发生类似找不到loaddef文件,custom-autoload以及其他奇怪的错误,执行:
a) make clean-autoloads
b) make clean-all
然后再重新编译。编译错误还有可能是make版本引起的,请使用GNU make,或者使用windows下的安装方法。
from: article
2.emacs-matlab
download from here.
照着 INSTALL 去安装就好。
3. Setting up matlab-mode for emacs
add following format to .emacs
;; matlab-emacs
(add-to-list 'load-path "path/to/matlab-emacs")
(load-library "matlab-load")
(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-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
(add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
(defun my-matlab-shell-mode-hook ()
'())
(add-hook 'matlab-shell-mode-hook 'my-matlab-shell-mode-hook)
(global-font-lock-mode t)
;(matlab-mode-hilit)
(autoload 'tlc-mode "tlc" "tlc Editing Mode" t)
(add-to-list 'auto-mode-alist '("//.tlc{1}quot; . tlc-mode))
(setq tlc-indent-function t)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(matlab-mode-install-path (quote ("/usr/local/MATLAB/R2010b/toolbox/")))
'(matlab-shell-ask-MATLAB-for-completions nil)
'(matlab-shell-command "/usr/local/MATLAB/R2010b/bin/matlab")
'(matlab-shell-enable-gud-flag t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; client
;;(server-start)