Re: [Mac-emacs-devel] Re: [Mac-emacs-users] Latest Mac OS X Emacs Source Now Available from Emacs C
Brought to you by:
akochoi
|
From: David W. <da...@wh...> - 2002-05-17 21:51:06
|
On 5/17/02 10:16 AM, "Andrew Choi" <ak...@sh...> claimed:
> (setq auto-mode-alist
> (append
> '(("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . cperl-mode))
> auto-mode-alist))
Thanks, that's what I was looking for. It was still loading perl-mode
instead of cperl-mode for files without an extension but a #! line, but I
figured out how to get it to load cperl-mode by using an alias. Here's what
I have now, and it works great:
(defalias 'perl-mode 'cperl-mode)
(setq auto-mode-alist
(append
'(("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\|pod\\)\\'" . cperl-mode))
auto-mode-alist))
Thanks for the help! I'm a happy camper, now.
Regards,
David
--
David Wheeler AIM: dwTheory
da...@wh... ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: Th...@ja...
|