help-octave
[Top][All Lists]
Advanced

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

Re: Octave & Emacs


From: Andreas Yankopolus
Subject: Re: Octave & Emacs
Date: Fri, 26 Sep 2008 08:30:03 -0400

Moreno,

Thanks for the reply. I've tried your suggestion as well as:

(autoload 'octave-mode "octave-mod" nil t)
(append ((\\.m$ . octave-mode)) auto-mode-alist))

The octave-mode cons gets attached to auto-mode-list either way. I think that there's something screwy going on with Emacs, but I don't know the guts of it well enough to troubleshoot.

Thanks,

Andreas

On Sep 25, 2008, at 12:06, Moreno Marzolla wrote:

Andreas Yankopolus wrote:
I've been unable to get Octave (*.m) files to automatically start  octave-mode in Emacs under Ubuntu Hardy Heron. The system is already  adding the cons for octave mode ("\\.m$" . octave-mode) to auto-mode- alist. The octave3.0-emacsen package is installed and emacs-mod.elc is  present. Despite this, I have to manually set *.m buffers to octave- mode.
Any ideas on what I should check?

Hi Andreas,

I don't know whether better solutions exist, but I am using the following in my /~.emacs initialization script and it works:

(autoload 'octave-mode "octave-mod" nil t)
(setq auto-mode-alist
     (cons '("\\.m$" . octave-mode) auto-mode-alist))

(I'm using Ubuntu 6.06). This would be a workaround rather than a true solution to your problem, but anyway...

Moreno.

--
Moreno Marzolla
EMail: address@hidden
WWW  : http://www.pd.infn.it/~marzolla



reply via email to

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