Skip to content

Instantly share code, notes, and snippets.

@dunossauro
Created July 26, 2023 18:01
Show Gist options
  • Save dunossauro/e46824cb413387fabdd8020cc4dc811d to your computer and use it in GitHub Desktop.
Save dunossauro/e46824cb413387fabdd8020cc4dc811d to your computer and use it in GitHub Desktop.
Custom faces to emacs markdown mode
(custom-set-faces
'(markdown-header-face-1 ((t (:inherit markdown-header-face :height 1.8 :foreground "#A3BE8C" :weight extra-bold))))
'(markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.4 :foreground "#EBCB8B" :weight extra-bold))))
'(markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.2 :foreground "#D08770" :weight extra-bold))))
'(markdown-header-face-4 ((t (:inherit markdown-header-face :height 1.15 :foreground "#BF616A" :weight extra-bold))))
'(markdown-header-face-5 ((t (:inherit markdown-header-face :height 1.11 :foreground "#b48ead" :weight extra-bold))))
'(markdown-header-face-6 ((t (:inherit markdown-header-face :height 1.06 :foreground "#5e81ac" :weight extra-bold))))
)
@dunossauro
Copy link
Author

To change fonts on this face:

(custom-set-faces
 '(markdown-header-face ((t (:inherit font-lock-function-name-face :weight bold :family "variable-pitch"))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment