659
edits
Carandraug (talk | contribs) (copy content from the emacs section on the manual (which has been removed for 4.2)) |
Carandraug (talk | contribs) (→Using Octave Mode: octave-mode is part of emacs since 21) |
||
Line 53: | Line 53: | ||
<li>To begin using Octave mode for all {{Path|.m}} files you visit, add the following lines to a file loaded by Emacs at startup time, typically your {{Path|~/.emacs}} file:</li> | <li>To begin using Octave mode for all {{Path|.m}} files you visit, add the following lines to a file loaded by Emacs at startup time, typically your {{Path|~/.emacs}} file:</li> | ||
<pre> | <pre> | ||
(setq auto-mode-alist | (setq auto-mode-alist | ||
(cons '("\\.m$" . octave-mode) auto-mode-alist)) | (cons '("\\.m$" . octave-mode) auto-mode-alist)) |