[Top][All Lists]

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

Autoload a major mode

From: Bänninger, Dominik
Subject: Autoload a major mode
Date: Thu, 7 Dec 2000 12:26:59 +0100


I want to creat an own major mode for *.m -files. Therefore I included the
following lines in my .emacs:

(autoload 'matlab-mode "m-mode")
(setq auto-mode-alist (cons '("\.m$" . matlab-mode) auto-mode-alist))

I put the file m-mode.el in the directory  .../emacs/site-lisp. When I open
emacs with a m-file, he will return the error message:

File mode specification error: (error "Autoloading failed to define function 

Can anyone tell me, what I did wrong?

Thanks in advance for your help 

reply via email to

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