My Emacs opens .m files in ObjC mode. However I want to open them in Octave mode. I have already added to the .emacs file:
.emacs
(autoload \'octave-mo
Use this.
;; octave-mode (autoload 'octave-mode "octave-mode" "Loding octave-mode" t) (add-to-list 'auto-mode-alist '("\\.m\\'" . octave-mode))