help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: invoke cper-mode instead of perl-mode


From: Harry Putnam
Subject: Re: invoke cper-mode instead of perl-mode
Date: Mon, 30 Jun 2003 20:02:09 -0700
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Harry Putnam <address@hidden> writes:

> I have this in .emacs:
> (wrapped for mail)
>  (setq auto-mode-alist
>      (cons '("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . cperl-mode )
>           auto-mode-alist))
>
> Which does work on any files matching the regex, but still, files
> with no extension but are still perl scripts with the perl shebang
> get opened in perl-mode instead of cperl-mode.  I don't see this
> explained under `How Major Modes are Chosen' or `Major Modes' in the
> manual so apparently it is another variable that does this.

Ahaa, got the right one now interpreter-mode-alist.  And it is in the
section about modes.

>
> A further problem is that files that emacs knows how to open get
> opened with abbrev-mode enabled.  But the ones openned in cperl-mode
> do not have abbrev-mode enabled.
>
> I have these in .emacs:
> (setq default-abbrev-mode t)
> (read-abbrev-file)

Still not getting abbrev-mode turned on when opening a perl script.
All other language modes seems to come up with abbrev-mode turned on.





reply via email to

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