summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorDaniel Colascione <dancol@dancol.org>2014-01-05 19:58:59 -0800
committerDaniel Colascione <dancol@dancol.org>2014-01-05 19:58:59 -0800
commitb82ace2f23dd390d743935f7ae8486cf9daadcac (patch)
tree4be7e85f8af411fc000f9bd2d95a7bb800773541 /lisp/textmodes
parentd1e12aefa680dced77cd2b1c93a9a818a8bf0160 (diff)
downloademacs-b82ace2f23dd390d743935f7ae8486cf9daadcac.tar.gz
emacs-b82ace2f23dd390d743935f7ae8486cf9daadcac.tar.bz2
emacs-b82ace2f23dd390d743935f7ae8486cf9daadcac.zip
rst-mode indentation is non-deterministic, so inhibit electric indentation
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/rst.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el
index 724afcc275e..a533bdb75e3 100644
--- a/lisp/textmodes/rst.el
+++ b/lisp/textmodes/rst.el
@@ -864,7 +864,10 @@ highlighting.
(add-hook 'font-lock-extend-region-functions 'rst-font-lock-extend-region t)
;; Text after a changed line may need new fontification.
- (set (make-local-variable 'jit-lock-contextually) t))
+ (set (make-local-variable 'jit-lock-contextually) t)
+
+ ;; Indentation is not deterministic.
+ (setq electric-indent-inhibit t))
;;;###autoload
(define-minor-mode rst-minor-mode