cperl-mode.el (was: Re: FAQ 3.12 Where can I get perl-mode for emacs?)



PerlFAQ Server <brian@xxxxxxxxxxxxxx> wrote:

In the Perl source directory, you'll find a directory called "emacs",
which contains a cperl-mode that color-codes keywords, provides
context-sensitive help, and other nifty things.

This advice is outdated, because 'cperl-mode.el' is now part of the
Emacs distribution, so it's not necessary to look in the Perl source
directory.

Working code is greatly appreciated.

I add the following line to Emacs to make cperl the default:

(defalias 'perl-mode 'cperl-mode)

I also have the following defaults:

(setq cperl-indent-level 4
cperl-close-paren-offset -4
cperl-brace-offset -4
cperl-label-offset 0
cperl-continued-statement-offset 4
cperl-tab-always-indent t)
.



Relevant Pages

  • Re: cperl-mode.el
    ... In the Perl source directory, you'll find a directory called "emacs", ... which contains a cperl-mode that color-codes keywords, ... Emacs distribution, so it's not necessary to look in the Perl source ...
    (comp.lang.perl.misc)
  • Re: cperl-mode.el (was: Re: FAQ 3.12 Where can I get perl-mode for emacs?)
    ... In the Perl source directory, you'll find a directory called "emacs", ... which contains a cperl-mode that color-codes keywords, ... Emacs distribution, so it's not necessary to look in the Perl source ...
    (comp.lang.perl.misc)