[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave & Emacs
From: |
Francesco Potorti` |
Subject: |
Re: Octave & Emacs |
Date: |
Fri, 26 Sep 2008 15:35:53 +0200 |
>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.
Here is the problem. It should be *prepended*.
If you do
(setq auto-mode-alist
(cons '("\\.m$" . octave-mode) auto-mode-alist))
it will be prepended. Do not use 'append'.
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/