Mercurial > hg > octave-terminal
changeset 1639:97d2cf4cd40e
[project @ 1995-11-28 04:20:16 by jwe]
author | jwe |
---|---|
date | Tue, 28 Nov 1995 04:20:16 +0000 |
parents | 254482b2e43e |
children | f985a06c9c56 |
files | emacs/octave.el |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/emacs/octave.el +++ b/emacs/octave.el @@ -213,7 +213,7 @@ For this to work well, you should use the specific forms of end statements (endif, endfor, endwhile, etc., and not just `end'). -Type ;? or ;\\[help-command] to display a list of built-in abbrevs for +Type `? or `\\[help-command] to display a list of built-in abbrevs for Octave keywords. Keybindings @@ -267,17 +267,17 @@ To begin using this mode for all .m files that you edit, add the following lines to your .emacs file: -(autoload 'octave-mode \"octave\" nil t) -(setq auto-mode-alist (cons '(\"\\\\.m$\" . octave-mode) auto-mode-alist)) + (autoload 'octave-mode \"octave\" nil t) + (setq auto-mode-alist (cons '(\"\\\\.m$\" . octave-mode) auto-mode-alist)) To turn on the abbrevs, auto-fill and font-lock features automatically, also add the following lines to your .emacs file: -(setq octave-mode-hook - (list 'turn-on-abbrevs 'turn-on-auto-fill - (lambda () (if (eq window-system 'x) - (progn - (font-lock-mode)))))) + (setq octave-mode-hook + (list 'turn-on-auto-fill + (lambda () ((abbrev-mode 1) + (if (eq window-system 'x) + (font-lock-mode)))))) See the Emacs manual for more information about how to customize font lock mode."