in reply to Perl mode for GNU Emacs

Here's a snip from my ~/.emacs (global-font-lock-mode 1) (add-to-list 'auto-mode-alist '("\\.\\(pPLlm\\|xs\\|perl\\)$" . cperl-mode)) .. that should do it.

Replies are listed 'Best First'.
RE: Re: Perl mode for GNU Emacs
by Anonymous Monk on Mar 06, 2000 at 13:09 UTC
    Oops .. that's (2) lines:
    (global-font-lock-mode 1)
    (add-to-list 'auto-mode-alist '("\\.\\(pPLlm\\|xs\\|perl\\)$" . cperl-mode))
      hi, are u saying that I actually write this in a file called ".emacs" and something is supposed to happen? (global-font-lock-mode 1) (add-to-list 'auto-mode-alist '("\\.\\(pPLlm\\|xs\\|perl\\)$" . cperl-mode)) Can u elaborate any? P
        Yes. Chances are you may already have a ~/.emacs file. But if you don't, create it .. then try to open something with one of those extensions (.pl, .perl, .pm, .xs .. etc)