From help-octave-request at bevo dot che dot wisc dot edu Thu Jan 31 09:09:49 2002 Subject: Re: Octave mode in emacs From: Pascual =?iso-8859-1?Q?Mu=F1oz=20Mu=F1oz?= To: Shengchao Li CC: help-octave at bevo dot che dot wisc dot edu Date: Thu, 31 Jan 2002 16:14:25 +0100 Oh, sorry, I didn't read the manual. Anyway, thank you very much. Regards. Shengchao Li wrote: > add the following in your ~/.emacs file: > (autoload 'octave-mode "octave-mod" nil t) > (setq auto-mode-alist > (cons '("\\.m$" . octave-mode) auto-mode-alist)) > > (add-hook 'octave-mode-hook > (lambda () > (abbrev-mode 1) > (auto-fill-mode 1) > (if (eq window-system 'x) > (font-lock-mode 1)))) > > (global-font-lock-mode 1) > > It is in the Octave manual. If you read you will find it there. > > shengchao > > On Thu, 31 Jan 2002, Pascual [iso-8859-1] Muñoz Muñoz wrote: > > > Dear all, > > > > I use emacs to edit my m files, but when I open any file, emacs always > > turns on the ObjC mode, instead of the octave one. Does anybody know how > > to solve this? > > > > Thanks in advance, > > > > Pascual. > > > > > > > > ------------------------------------------------------------- > > Octave is freely available under the terms of the GNU GPL. > > > > Octave's home on the web: http://www.octave.org > > How to fund new projects: http://www.octave.org/funding.html > > Subscription information: http://www.octave.org/archive.html > > ------------------------------------------------------------- > > > > > > ------------------------------------------------------------- > Octave is freely available under the terms of the GNU GPL. > > Octave's home on the web: http://www.octave.org > How to fund new projects: http://www.octave.org/funding.html > Subscription information: http://www.octave.org/archive.html > ------------------------------------------------------------- -- ------------------------------------------------------- Pascual Muñoz Muñoz, Telecommunication Engineer PhD. Research Student at Optical Communications Group Dept. Comunicaciones - Universidad Politécnica Valencia C/ Camino Vera s/n 46022 - Valencia - SPAIN http://www.gco.upv.es/ - pascual at ieee dot org ------------------------------------------------------- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------