Maintaining the table of contents up-to-date.
--- a/.emacs-my Fri Jul 01 16:06:49 2011 +0300
+++ b/.emacs-my Wed Jul 06 15:53:09 2011 +0300
@@ -124,6 +124,7 @@
'(
text-mode
outline-mode
+ rst-mode
)
"List of text modes.")
@@ -771,6 +772,12 @@
(save-excursion
(insert result)))))
+;; ----------------------------------------------------------------
+(massage "rst, reStructuredText")
+
+;; Maintaining the table of contents up-to-date.
+(add-hook 'rst-adjust-hook 'rst-toc-update)
+
;;; ----------------------------------------------------------------
(message "TeX, LaTeX")