如何在 GNU Emacs 中安装 MATLAB 模式?
是否有适用于 MATLAB 和/或 Octave 文件的 Emacs 主要模式?对于那些不知道的人,MATLAB 文件通常具有“.m”文件扩展名。
我的主要兴趣是 GNU Emacs,但 XEmacs 提示也将受到赞赏。
Is there an Emacs major mode for MATLAB and / or Octave files? For those who don't know, MATLAB files generally have a ".m" file extension.
My primary interest is GNU Emacs but XEmacs tips would also be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您是否尝试过标准 emacs 发行版中的八度模式?我发现这效果很好。
如果您发现它与 .m 扩展名没有关联,请将其添加到您的 .emacs 中:
Have you tried the octave-mode that is part of the standard emacs distribution? I have found that this works well.
If you're finding it doesn't associate the .m extension, add this to your .emacs:
我想你会想要 http://matlab-emacs.sourceforge.net/ ?请阅读那里的说明。
我几年前在 XEmacs 中使用过它的祖先,所以它肯定曾经支持它,但我相信作者是 GNUEmacs 用户。编写它的人(Eric Ludlam)是 Mathworks 的员工,因此它的官方凭据模糊。
You'll be wanting http://matlab-emacs.sourceforge.net/ , I would imagine? Read the instructions there.
I used an ancestor of this years ago in XEmacs, so it certainly used to have support for it, but I believe the author is an GNUEmacs user. The guy who wrote it (Eric Ludlam) is a Mathworks employee, so it has vague official credentials.
未内置于 GNU Emacs 22 中。我发现了 matlab 模式 在网络上 (elisp) ,但它可以追溯到 2000 年左右,所以我不知道你有什么样的支持。
要安装,您必须让 emacs 加载它,然后调用该模式。您可以交互地发出
load-file
(使用Mx load-file
)来测试它。Not built in in GNU Emacs 22. I found a matlab mode on the web (elisp), but it dates from circa 2000, so I don't know what kind of support you have.
To install you must get emacs to load it, then invoke the mode. You can interactively issue a
load-file
(WithM-x load-file
) to test it.有一个来自 matlab.el 文件。 mathworks.com/matlabcentral/fileexchange/authors/1279" rel="nofollow noreferrer">Matthew Wette 于 MathWorks 文件交换。该文件似乎自 1997 年以来就没有更新过(!),并且只是简单地说它是“用于 Emacs 的早期版本”,但希望它仍然对您有用。
There's a matlab.el file from Matthew Wette on The MathWorks File Exchange. The file doesn't appear to have been updated since 1997 (!), and simply says it is "for early versions of Emacs", but hopefully it will still be of use to you.
我最近从 Matlab Central 文件交换下载了 Emacs 的 Matlab 模式。效果很好。不要确切地记得我在哪里找到它的,如果你遇到困难请告诉我,我会更努力地寻找。
I recently downloaded a Matlab mode for Emacs from the Matlab Central file exchange. Works just fine. Don't recall exactly where I found it, if you have trouble let me know and I will look harder.