summaryrefslogtreecommitdiff
path: root/lisp/electric.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2010-10-27 10:26:01 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2010-10-27 10:26:01 -0400
commit2122161f8dfddcbe0e46b63803ae73f3033d0e55 (patch)
tree653d1d83ffbf86c0884604e6885bc9a8aae8ac2c /lisp/electric.el
parent0b9808b0cf492ee3c1b7f3dfe8bc962c13c3aad7 (diff)
downloademacs-2122161f8dfddcbe0e46b63803ae73f3033d0e55.tar.gz
* 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/electric.el')
-rw-r--r--lisp/electric.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/electric.el b/lisp/electric.el
index 8e9d23be231..a0d849bbcca 100644
--- a/lisp/electric.el
+++ b/lisp/electric.el
@@ -178,6 +178,10 @@
;; Electric indentation.
+;; Autoloading variables is generally undesirable, but major modes
+;; should usually set this variable by adding elements to the default
+;; value, which only works well if the variable is preloaded.
+;;;###autoload
(defvar electric-indent-chars '(?\n)
"Characters that should cause automatic reindentation.")