emacs 中的八度音程(搜索程序等文件或目录)

发布于 2024-08-12 13:36:40 字数 773 浏览 1 评论 0原文

我正在尝试从 emacs 中运行 Octave(我在这两个方面都是初学者,但现在已经掌握了 emacs 快捷方式)。当我按照建议尝试 run-octave 在这里,我收到消息了。

正在搜索文件,没有这样的文件或目录,八度

免责声明:我使用的是 Windows Vista。 八度位于 c:\Octave... emacs默认目录是 c:\users\username\

我将其添加到 _emacs 文件中:

<块引用>

(自动加载'八度模式“八度模式”nil t)

    (setq auto-mode-alist
            (cons '("\\.m$" . octave-mode) auto-mode-alist))
<块引用>

(自动加载'run-octave“octave-inf”nil t)

有关如何告诉 emacs 八度在哪里的任何提示?

感谢您提前的帮助, 马萨格兰

I'm trying to run Octave from within emacs (I'm mostly a beginner at both but have the hang of emacs shortcuts now). When I try run-octave as suggested here, I get the message.

Searching for file, no such file or directory, octave

Disclaimer: I'm using Windows Vista.
Octave is in c:\Octave...
the emacs default directory is
c:\users\username\

and I added this to the _emacs file:

(autoload 'octave-mode "octave-mod" nil t)

    (setq auto-mode-alist
            (cons '("\\.m$" . octave-mode) auto-mode-alist))

(autoload 'run-octave "octave-inf" nil t)

Any tips on how to tell emacs where octave is?

Thank you for your help in advance,
Massagran

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

む无字情书 2024-08-19 13:36:41

您需要确保八度二进制文件(可能位于“C:\Octave\bin”下)位于搜索路径中。

要检查这一点,请右键单击桌面或开始菜单上的“计算机”图标,右键单击,选择“属性”,然后选择“高级系统设置”。单击“环境变量”按钮并查找 PATH。如果找不到此变量中提到的八度目录,请附加“;C:\Octave\bin”。

有关如何设置 PATH 变量的更多信息,请检查例如 此处

You need to make sure the octave binary, probably under "C:\Octave\bin", is in the search path.

To check this, right click your "Computer" icon on the Desktop or the Start Menu, right-click, select "Properties" and then select "Advanced System Settings". Click the "Environments variables" button and look for PATH. If you can't find the octave directory mentioned in this variable append ";C:\Octave\bin".

For more information on how to set the PATH variable check for example here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文