Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headings in rst's #40

Closed
fuzzy-id opened this issue Mar 13, 2012 · 1 comment
Closed

Headings in rst's #40

fuzzy-id opened this issue Mar 13, 2012 · 1 comment

Comments

@fuzzy-id
Copy link

Thanks a lot for maintaining this wonderfull theme!

On both, Emacs 23 and 24, in *.rst files headings like:

=====
 foo
=====

are represented via grey fonts on a grey background. I added the following to color-theme-zenburn.el which makes the headings look good in Emacs 24:

diff --git a/color-theme-zenburn.el b/color-theme-zenburn.el
index 9d203da..0bf0c4f 100644
--- a/color-theme-zenburn.el
+++ b/color-theme-zenburn.el
@@ -454,6 +454,14 @@
      (rpm-spec-tag-face ((t (:foreground ,zenburn-blue))))
      (rpm-spec-var-face ((t (:foreground ,zenburn-red))))

+     ;; rst-mode
+     (rst-level-1-face ((t (:foreground ,zenburn-orange))))
+     (rst-level-2-face ((t (:foreground ,zenburn-green+1))))
+     (rst-level-3-face ((t (:foreground ,zenburn-blue-1))))
+     (rst-level-4-face ((t (:foreground ,zenburn-yellow-2))))
+     (rst-level-5-face ((t (:foreground ,zenburn-cyan))))
+     (rst-level-6-face ((t (:foreground ,zenburn-green-1))))
+
      ;; show-paren
      (show-paren-mismatch ((t (:foreground ,zenburn-red-3 :weight bold))))
      (show-paren-match ((t (:foreground ,zenburn-blue-1 :weight bold))))

I took the same colors as for the org-mode levels.

On Emacs 23 things seem to be a bit more complicated, I didn't manage to get the colors right there.

Regards

@bbatsov
Copy link
Owner

bbatsov commented Mar 13, 2012

Thanks! I've updated the theme accordingly.

@bbatsov bbatsov closed this as completed Mar 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants