Editing Emacs
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
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> | ||
(autoload 'octave-mode "octave-mod" nil t) | |||
(setq auto-mode-alist | (setq auto-mode-alist | ||
(cons '("\\.m$" . octave-mode) auto-mode-alist)) | (cons '("\\.m$" . octave-mode) auto-mode-alist)) |