如何才能在emacs中使用matlab的shell模式?

Vim、Emacs配置和使用
回复
头像
cheneymx
帖子: 159
注册时间: 2007-03-13 4:59
来自: Erlangen
送出感谢: 0
接收感谢: 0

如何才能在emacs中使用matlab的shell模式?

#1

帖子 cheneymx » 2007-07-25 18:28

我看了官方的说明, 好像没有看到matlab-shell的介绍. 然后在网上找了一份配置:


(add-to-list 'load-path "~/green/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)

(defun my-matlab-shell-mode-hook () '())
(add-hook 'matlab-shell-mode-hook 'my-matlab-shell-mode-hook)

(setq matlab-shell-command-switches '("-nodesktop -nosplash"))

---------------
但是每次进入matlab-shell模式以后, 系统都会说 currunt buffer no process.
不知道如何处理. 望赐教.
头像
Fermat618
帖子: 728
注册时间: 2008-12-28 16:01
送出感谢: 2 次
接收感谢: 15 次

Re: 如何才能在emacs中使用matlab的shell模式?

#2

帖子 Fermat618 » 2009-02-22 22:37

cheneymx 写了:我看了官方的说明, 好像没有看到matlab-shell的介绍. 然后在网上找了一份配置:


(add-to-list 'load-path "~/green/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)

(defun my-matlab-shell-mode-hook () '())
(add-hook 'matlab-shell-mode-hook 'my-matlab-shell-mode-hook)

(setq matlab-shell-command-switches '("-nodesktop -nosplash"))

---------------
但是每次进入matlab-shell模式以后, 系统都会说 currunt buffer no process.
不知道如何处理. 望赐教.
换个新版本的matlab,我都用2008a(7.6)了。再到网上去找相当文章。
爱因斯坦会弹钢琴
爱因斯坦会拉小提琴
爱因斯坦会骑自行车
回复

回到 “Vim和Emacs”