reduced markdown font size

This commit is contained in:
ndwarshuis 2019-01-28 14:45:58 -08:00
parent a9a93b6497
commit 70b81d751b
1 changed files with 13 additions and 0 deletions

View File

@ -774,6 +774,19 @@ Overlays hex color codes with matching colors in certain modes like css and html
(use-package rainbow-mode
:ensure t)
#+END_SRC
*** markdown
Make font sizes smaller and less intrusive for headers
#+BEGIN_SRC emacs-lisp
(add-hook 'markdown-mode-hook
(lambda ()
(let ((heading-height 1.15))
(set-face-attribute 'markdown-header-face-1 nil :weight 'bold :height heading-height)
(set-face-attribute 'markdown-header-face-2 nil :weight 'semi-bold :height heading-height)
(set-face-attribute 'markdown-header-face-3 nil :weight 'normal :height heading-height)
(set-face-attribute 'markdown-header-face-4 nil :weight 'normal :height heading-height)
(set-face-attribute 'markdown-header-face-5 nil :weight 'normal :height heading-height))))
#+END_SRC
*** R-markdown
R-markdown is enabled via polymode, which allows multiple modes in one buffer (this is actually as crazy as it sounds). In this case, the modes are yaml, R, markdown, and others. Installing =poly-R= will pull in all required dependencies.
#+BEGIN_SRC emacs-lisp