nXhtml(无 javascript 模式/eruby-javascript)
我刚刚通过下载 zip 文件、将存档解压到我的主目录并将 (load "/home/spinlock/nxhtml/autostart.el")
添加到我的 .emacs 文件中来安装 nXhtml。我的问题是,当我尝试编辑 .js.erb 文件时,我收到错误:
(No javascript-mode/eruby-javascript)
并且我没有得到我期望的语法突出显示(例如,注释与 javascript 代码的颜色相同) 。但是,当我将光标移动到该文件的 Ruby 部分内时,该通知会更改为:
(Ruby/eruby-javascript)
我认为这是一个好兆头,而且看起来我在缓冲区的这一部分中确实突出显示了正确的 Ruby 语法(例如注释以红色字体显示)。
我假设我需要添加一个配置文件来告诉 emacs 如何管理 javascript 模式,但我不知道如何做到这一点。任何帮助将不胜感激。
谢谢!
I've just installed nXhtml by downloading their zip file, extracting the archive into my home directory and adding (load "/home/spinlock/nxhtml/autostart.el")
to my .emacs file. My problem is that when I try to edit a .js.erb file, I'm getting the error:
(No javascript-mode/eruby-javascript)
and I'm not getting the syntax highlighting that I'd expect (for instance, comments are the same color as javascript code). However, when I move the cursor inside a Ruby section of this file, that notice changes to:
(Ruby/eruby-javascript)
which I take as a good sign plus it does look like I've got the proper Ruby syntax highlighting in this part of the buffer (e.g. comments are show in red font).
I assume that I need to add a configuration file that tells emacs how to manage javascript-mode but I have no clue how to do this. Any help would be greatly appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论