如何在emacs中运行八度?

时间:2016-08-28 04:18:39

标签: emacs octave

我从Octave 3.8.0 installer安装了Octave,这是Octave-forge。在终端中,我按open -a Octave-cli运行Octave。现在我想在emacs中运行Octave。我在.emacs文件中添加以下行:

(autoload 'run-octave "octave-inf" nil t)
(autoload 'octave-mode "octave-mod" nil t)
(setq auto-mode-alist
      (cons '("\\.m$" . octave-mode) auto-mode-alist))
(add-hook 'octave-mode-hook
          (lambda ()
            (abbrev-mode 1)
            (auto-fill-mode 1)
            (if (eq window-system 'x)
                (font-lock-mode 1))))

当我输入M-x run-octave时,会显示searching for program: no such file or directory, octaveenter image description here

在终端中键入which octave仅显示octave not found

0 个答案:

没有答案
相关问题