diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-04-19 18:02:25 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2012-04-19 18:02:25 -0400 |
commit | cfc7d5da20fbfe33c1d2e6d2f3c215e324446d87 (patch) | |
tree | 2472f3f6f78690dedb7fda508bc3475d734a5f82 /lisp/electric.el | |
parent | 5b01685cc194de3d566003bd264b2bf600ab8067 (diff) | |
download | emacs-cfc7d5da20fbfe33c1d2e6d2f3c215e324446d87.tar.gz |
* lisp/electric.el (electric-indent-post-self-insert-function): Check that
electric-indent-mode is enabled in current buffer.
Diffstat (limited to 'lisp/electric.el')
-rw-r--r-- | lisp/electric.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/electric.el b/lisp/electric.el index 50c9010a74e..6a31ba1f1d3 100644 --- a/lisp/electric.el +++ b/lisp/electric.el @@ -215,6 +215,7 @@ point right after that char, and it should return t to cause indentation, ;; it looks challenging. (let (pos) (when (and + electric-indent-mode ;; Don't reindent while inserting spaces at beginning of line. (or (not (memq last-command-event '(?\s ?\t))) (save-excursion (skip-chars-backward " \t") (not (bolp)))) |