[pm-h] turn off perl mode in emacs

Will Willis will.willis at gmail.com
Wed May 7 17:18:16 PDT 2008


If you cant find a .emacs (or .xemacs, if that's the case) then create
it in your home directory. Then add this line:

(add-to-list 'auto-mode-alist '("\\.pl\\'" . latex-mode))

and files (and new buffers) opened with a .pl extension will open in latex-mode.

-Will


On Wed, May 7, 2008 at 2:45 PM, Russell L. Harris <rlharris at oplink.net> wrote:
> * Will Willis <will.willis at gmail.com> [080507 13:21]:
>
> > 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.
>
>  I used "find" to search for .emacs* and for .xemacs* ; the only
>  configuration files which I found were in my home directory, and
>  neither contained references to perl.
>
>  I am running Debian GNU/Linux on an i386 machine.
>
>
>
>  RLH
>  _______________________________________________
>  Houston mailing list
>  Houston at pm.org
>  http://mail.pm.org/mailman/listinfo/houston
>  Website: http://houston.pm.org/
>


More information about the Houston mailing list