rst.elの色設定

rst.elはここにある。

灰色背景になって、章タイトルが見難い。
rst.elには

(setq frame-background-mode 'dark)

とすると、色が黒背景に対応したものに変わると書いてあるのだが、何か他の設定とバッティングしているのか上手くいかないので、全部手動で設定してみた。
参考にしたのは、org-modeの配色(Carbon Emacsだと /Applications/Emacs.app/Contents/Resources/lisp/textmodes/org.el)。折角なのでgreyによる背景グラデーションはそのまま採用した。

M-x customize-face
> rst-level-1-face ~ rst-level-6-faceまでをorg-level-*に合わせて変更
M-x customize
> [Faces group]-[Rst Faces]-[Rst Faces Defaults]-[Rst Level Face Base Light]を 50(もう少し小さめにしても良いかもしれない)

customize.elには以下のように出力される。

(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(rst-level-1-face ((t (:foreground "LightSkyBlue"))) t)
 '(rst-level-2-face ((t (:foreground "LightGoldenrod"))) t)
 '(rst-level-3-face ((t (:foreground "Cyan1"))) t)
 '(rst-level-4-face ((t (:foreground "chocolate1"))) t)
 '(rst-level-5-face ((t (:foreground "PaleGreen"))) t)
 '(rst-level-6-face ((t (:foreground "Aquamarine"))) t))
 ;; (rst-level-7-face ((t (:foreground "LightSteelBlue"))) t)  ;; メモ
 ;; (rst-level-8-face ((t (:foreground "LightSalmon"))) t)
(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(rst-level-face-base-light 50))