diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-10-27 10:26:01 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2010-10-27 10:26:01 -0400 |
commit | 2122161f8dfddcbe0e46b63803ae73f3033d0e55 (patch) | |
tree | 653d1d83ffbf86c0884604e6885bc9a8aae8ac2c /lisp/progmodes/octave-mod.el | |
parent | 0b9808b0cf492ee3c1b7f3dfe8bc962c13c3aad7 (diff) | |
download | emacs-2122161f8dfddcbe0e46b63803ae73f3033d0e55.tar.gz emacs-2122161f8dfddcbe0e46b63803ae73f3033d0e55.tar.bz2 emacs-2122161f8dfddcbe0e46b63803ae73f3033d0e55.zip |
* lisp/electric.el (electric-indent-chars): Autoload.
* lisp/progmodes/octave-mod.el (octave-mode):
* lisp/progmodes/ruby-mode.el (ruby-mode): Take advantage of it.
(ruby-mode-abbrev-table): Merge initialization and declaration.
Diffstat (limited to 'lisp/progmodes/octave-mod.el')
-rw-r--r-- | lisp/progmodes/octave-mod.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el index 56de9b869db..40931c3d54d 100644 --- a/lisp/progmodes/octave-mod.el +++ b/lisp/progmodes/octave-mod.el @@ -646,9 +646,8 @@ including a reproducible test case and send the message." (aref (cdr kw) (1- (length (cdr kw))))) smie-closer-alist)))))) - ;; FIXME: maybe we should use (cons ?\; electric-indent-chars) - ;; since only ; is really octave-specific. - (set (make-local-variable 'electric-indent-chars) '(?\; ?\s ?\n)) + (set (make-local-variable 'electric-indent-chars) + (cons ?\; electric-indent-chars)) (set (make-local-variable 'comment-start) octave-comment-start) (set (make-local-variable 'comment-end) "") |