How can I enable cperl syntax check on aquamacs?

64 Views Asked by At

Check syntax is in cperl menu disabled. If I try M-x cperl-check-syntax, I got error message

Cannot open load file: no such file or directory, mode-compile.

I found no hint on emacswiki.

1

There are 1 best solutions below

0
lawlist On

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.

The interactive function cperl-check-syntax is looking for that library and throws an error when it cannot be found. 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."