简体   繁体   English

如何在aquamacs上启用cperl语法检查?

[英]How can I enable cperl syntax check on aquamacs?

Check syntax is in cperl menu disabled. 检查语法在cperl菜单中已禁用。 If I try Mx cperl-check-syntax , I got error message 如果尝试使用Mx cperl-check-syntaxMx cperl-check-syntax收到错误消息

Cannot open load file: no such file or directory, mode-compile. 无法打开加载文件:无此类文件或目录,请进行模式编译。

I found no hint on emacswiki . 我在emacswiki上找不到任何提示。

Install the library mode-compile.el by downloading it and placing it in the load-path : https://github.com/emacsmirror/mode-compile/blob/master/mode-compile.el -- then, either evaluate the buffer of the newly added library or restart Aquamacs. 通过下载库mode-compile.el并将其放置在load-path来安装它: https : //github.com/emacsmirror/mode-compile/blob/master/mode-compile.el-然后,评估新添加的库的缓冲区或重新启动Aquamacs。

The interactive function cperl-check-syntax is looking for that library and throws an error when it cannot be found. 交互式功能cperl-check-syntax正在寻找该库,并在找不到该库时抛出错误。 The doc-string for cperl-tips states in relevant part: " Note that to enable Compile choices in the menu you need to install mode-compile.el . " cperl-tips的doc字符串在相关部分中指出:“ 请注意,要在菜单中启用编译选项,您需要安装mode-compile.el

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM