[pm-h] turn off perl mode in emacs

Todd Rinaldo toddr at null.net
Wed May 7 23:40:01 PDT 2008


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





More information about the Houston mailing list