This is a simple mode for editing cpanfile for Perl 5 modules. It provides syntax highlighting for module requirements as described in CPAN::Meta::Spec, and imenu integration.
This mode derives from perl-mode
(or cperl-mode
, if you aliased it.)
If you’re on use-package, add this in your init.el
:
(use-package cpanfile-mode
:ensure t)
Then visit your project’s cpanfile
.
To quickly find a required package, call M-x imenu
or similar.