From: Andrew C. <ak...@sh...> - 2002-05-17 17:22:53
|
> [...] I've been setting cperl-mode like this: > > (autoload 'perl-mode "cperl-mode" "alternate mode for editing Perl programs" > t) > > This doesn't work now, though. When I load a Perl file, Emacs says, > 'File mode specification error: (error "Autoloading failed to define > function perl-mode")'. Do you know how I might get this to work > again? Hi David, Do you want to load cperl-mode instead of perl-mode automatically when you visit a Perl file? If so the following is probably a better way to specify that. (setq auto-mode-alist (append '(("\\.\\([pP]\\([Llm]\\|erl\\)\\|al\\)\\'" . cperl-mode)) auto-mode-alist)) There's some more information on this in both the Emacs manual and Emacs Lisp manual. Andrew. |