From 70b81d751ba45f23e2884468eb5ecc4210c58208 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Mon, 28 Jan 2019 14:45:58 -0800 Subject: [PATCH] reduced markdown font size --- conf.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/conf.org b/conf.org index 1348a91..1566bdb 100644 --- a/conf.org +++ b/conf.org @@ -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