Emacs23.4, markdown-mode 1.8.1
Init.el
add
;; custom color (defface markdown-header-face-1 '((((class color) (background light)) (:foreground "DeepPink1" :underline "DeepPink1" :weight bold)) (((class color) (background dark)) (:foreground "DeepPink1" :underline "DeepPink1" :weight bold))) "Face for level-1 headers.") (defface markdown-header-face-2 '((((class color) (background light)) (:foreground "magenta1" :underline "magenta1" :weight bold)) (((class color) (background dark)) (:foreground "magenta1" :underline "magenta1" :weight bold))) "Face for level-2 headers.") (defface markdown-header-face-3 '((((class color) (background light)) (:foreground "purple1" :underline "purple1" :weight bold)) (((class color) (background dark)) (:foreground "purple1" :underline "purple1" :weight bold))) "Face for level-3 headers.") (defface markdown-header-face-4 '((((class color) (background light)) (:foreground "DeepPink4" :underline "DeepPink4" :weight bold)) (((class color) (background dark)) (:foreground "DeepPink4" :underline "DeepPink4" :weight bold))) "Face for level-4 headers.") (defface markdown-header-face-5 '((((class color) (background light)) (:foreground "magenta4" :underline "magenta4" :weight bold)) (((class color) (background dark)) (:foreground "magenta4" :underline "magenta4" :weight bold))) "Face for level-5 headers.") (defface markdown-header-face-6 '((((class color) (background light)) (:foreground "purple4" :underline "purple4" :weight bold)) (((class color) (background dark)) (:foreground "purple4" :underline "purple4" :weight bold))) "Face for level-6 headers.")
何か無理矢理感。
誰かもっとスマートなやり方を教えて下され。