[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cperl-mode instead of perl-mode? (was Re: perl-mode indent bug)

From: Randal L. Schwartz
Subject: Re: cperl-mode instead of perl-mode? (was Re: perl-mode indent bug)
Date: 12 Apr 2006 06:18:56 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

>>>>> "Randal" == Randal L Schwartz <address@hidden> writes:

>>>>> "Karl" == Karl Chen <address@hidden> writes:
Karl> Perl-mode mis-indents this:

Randal> All the cool-cats I know have completely abandoned perl-mode
Randal> for cperl-mode long ago.   Is there any way we can just make
Randal> that the default instead?  It'd keep me from having to copy
Randal> this from .emacs to .emacs for each new work environment:

Randal> (while (let ((pm (rassoc 'perl-mode auto-mode-alist)))
Randal>   (and pm (setcdr pm 'cperl-mode))))
Randal> (while (let ((pm (rassoc 'perl-mode interpreter-mode-alist)))
Randal>   (and pm (setcdr pm 'cperl-mode))))

Heh.  Just realized the (and ..) in there is vestigial.  Nothing like posting
code to force you to do a code-review about 20 seconds too late.

Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<address@hidden> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]