[pm-h] turn off perl mode in emacs

G. Wade Johnson gwadej at anomaly.org
Thu May 8 05:19:59 PDT 2008


I have a thought. Will, how would you like to give us some tips and
tricks on using emacs at some point?

We had a talk a couple years ago about vi, but no one came forward to
do emacs.

G. Wade

On Thu, 8 May 2008 01:40:01 -0500
Todd Rinaldo <toddr at null.net> wrote:

> heh. Now I know how to turn on cperl mode for .t files. Thanks!
> 
> On May 7, 2008, at 1:16 PM, Will Willis wrote:
> 
> > Chances are, your .emacs file has cperl-mode associated with
> > *.p[l|m] files on start. Look in that file, see what it's doing,
> > e.g.:
> >
> >   (add-to-list 'auto-mode-alist '("\\.pl\\'" . cperl-mode))
> >   (add-to-list 'auto-mode-alist '("\\.pm\\'" . cperl-mode))
> >
> > then just change cperl-mode to whatever mode you want.
> >
> > -Will
> >
> > On Wed, May 7, 2008 at 1:05 PM, Russell L. Harris  
> > <rlharris at oplink.net> wrote:
> >> I would like to prevent XEmacs from entering CPerl mode (or any
> >> other perl mode) whenever a perl script is loaded.
> >>
> >> I normally use XEmacs in LaTeX mode, and I find a hindrance the
> >> "assistance" and "automation" which CPerl mode attempts to impose.
> >>
> >> Regrettably, I have not yet been able to figure out how to prevent
> >> automatic entry of CPerl mode when a perl script is loaded.
> >>
> >> It is possible to change the mode once a file is loaded, but this  
> >> is a
> >> bother.  Perhaps a reasonable fix is to bind the command "M-x
> >> latex-mode" to a function key, so that the mode can be changed
> >> with a single keystroke.
> >>
> >> RLH
> >> _______________________________________________
> >> Houston mailing list
> >> Houston at pm.org
> >> http://mail.pm.org/mailman/listinfo/houston
> >> Website: http://houston.pm.org/
> >>
> > _______________________________________________
> > Houston mailing list
> > Houston at pm.org
> > http://mail.pm.org/mailman/listinfo/houston
> > Website: http://houston.pm.org/
> 
> Todd Rinaldo
> toddr at null.net
> 
> 
> 
> _______________________________________________
> Houston mailing list
> Houston at pm.org
> http://mail.pm.org/mailman/listinfo/houston
> Website: http://houston.pm.org/


-- 
Perl isn't really about safety. It's about getting where you're going,
and enjoying the trip. It's more important to be a good driver than to
have seven feet of sponge rubber all around your car.       -- Larry
Wall


More information about the Houston mailing list