From maintainers-request at octave dot org Sat Jan 15 03:48:22 2005 Subject: Re: Octave emacs lisp gobbledy-gook From: Daniel J Sebald To: maintainers at octave dot org Date: Sat, 15 Jan 2005 03:53:54 -0600 Daniel J Sebald wrote: > To begin using this mode for all `.m' files that you edit, add the > following lines to your `.emacs' file: > > (autoload 'octave-mode \"octave-mod\" nil t) > (setq auto-mode-alist > (cons '(\"\\\\.m$\" . octave-mode) auto-mode-alist)) > > However, both of the those commands seemed to cause errors in emacs. > I could leave out the first line, and the Fedora setup already > declares "octave-mode". However, the documentation should probably be > changed to something that works if it is present in .emacs. (What > that would be, I have no idea. You might look in the lisp file > /usr/local/share/emacs/site-lisp/loaddefs.el.) I included from the loaddefs.el file the syntax (without the long-long-long comment): (autoload (quote octave-mode) "/usr/share/emacs/21.3/lisp/octave-mod" "" t nil) in my .init.el xemacs file. So, apparently that works and I'm now a happy camper again. (I just put the full path in for the file because I got tired of looking for answers.) Dan