Fix rst-level-*-face for terminal.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 01 Sep 2011 21:50:46 +0300
changeset 689 1b632e2151cc
parent 688 5ddce6e50379
child 690 90d155b82954
Fix rst-level-*-face for terminal.
.emacs-my
--- a/.emacs-my	Thu Sep 01 09:49:23 2011 +0300
+++ b/.emacs-my	Thu Sep 01 21:50:46 2011 +0300
@@ -828,6 +828,18 @@
 ;; Maintaining the table of contents up-to-date.
 (add-hook 'rst-adjust-hook 'rst-toc-update)
 
+(unless window-system
+  (eval-after-load 'rst
+    '(progn
+       (custom-set-faces
+        '(rst-level-1-face ((t (:background "yellow"))) t)
+        '(rst-level-2-face ((t (:background "yellow"))) t)
+        '(rst-level-3-face ((t (:background "yellow"))) t)
+        '(rst-level-4-face ((t (:background "yellow"))) t)
+        '(rst-level-5-face ((t (:background "yellow"))) t)
+        '(rst-level-6face ((t (:background "yellow"))) t)
+        ) ) ) )
+
 ;;; ----------------------------------------------------------------
 (message "TeX, LaTeX")