diff options
author | smerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-05-19 20:19:38 +0000 |
---|---|---|
committer | smerten <smerten@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-05-19 20:19:38 +0000 |
commit | 263586072da35964f9a8d72a795e31d044508321 (patch) | |
tree | 441c727bbf695d542c25ee39f328a21a498cf2e2 | |
parent | bff1898ed53f5d2d0040168b7d088678a648d3dd (diff) | |
download | docutils-263586072da35964f9a8d72a795e31d044508321.tar.gz |
Refixed font-lock-support mode once again to work with more Emacs
versions.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@5556 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r-- | tools/editors/emacs/rst.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/editors/emacs/rst.el b/tools/editors/emacs/rst.el index 89b089a18..34be79a09 100644 --- a/tools/editors/emacs/rst.el +++ b/tools/editors/emacs/rst.el @@ -391,6 +391,7 @@ You may customize `rst-mode-lazy' to toggle font-locking of blocks." (set (make-local-variable 'paragraph-separate) paragraph-start) + (set (make-local-variable 'indent-line-function) 'indent-relative-maybe) (set (make-local-variable 'paragraph-start) "\f\\|>*[ \t]*$\\|>*[ \t]*[-+*] \\|>*[ \t]*[0-9#]+\\. ") (set (make-local-variable 'adaptive-fill-mode) t) @@ -420,8 +421,8 @@ blocks." ;; jit-lock-mode replaced lazy-lock-mode in GNU Emacs 22 (let ((jit-or-lazy-lock-mode (cond - ((fboundp 'jit-lock-mode) 'jit-lock-mode) ((fboundp 'lazy-lock-mode) 'lazy-lock-mode) + ((fboundp 'jit-lock-mode) 'jit-lock-mode) ;; if neither lazy-lock nor jit-lock is supported, ;; tell user and disable rst-mode-lazy (t (when rst-mode-lazy |