From d36ed12cac71e8cf772c44aaa51cf271ca72af75 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 16 Sep 2019 17:05:16 -0700 Subject: [org] bigger font for title / headlines --- emacs.d/custom/fcuny-org.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/emacs.d/custom/fcuny-org.el b/emacs.d/custom/fcuny-org.el index dee8d2a..35d673a 100644 --- a/emacs.d/custom/fcuny-org.el +++ b/emacs.d/custom/fcuny-org.el @@ -9,7 +9,8 @@ :hook ((org-mode . visual-line-mode) (org-mode . org-indent-mode) - (org-capture-mode-hook . delete-other-windows)) + (org-capture-mode-hook . delete-other-windows) + (org-mode . fcuny/org-mode-setup)) :bind (("C-c c" . org-capture) ("C-c a" . org-agenda) @@ -138,7 +139,15 @@ ("g C" (dired org-default-completed-dir)) ("[\t]" (org-cycle)) ("s" (org-save-all-org-buffers) "save") - ("q" nil "quit"))) + ("q" nil "quit")) + + :init + (defun fcuny/org-mode-setup () + (let* ((base-font-color (face-foreground 'default nil 'default)) + (headline `(:inherit default :weight bold :foreground ,base-font-color))) + (custom-theme-set-faces 'user `(org-document-title ((t (,@headline :height 1.5))))) + (custom-theme-set-faces 'user `(org-level-1 ((t (,@headline :height 1.3))))) + (custom-theme-set-faces 'user `(org-level-2 ((t (:height 1.1)))))))) (use-package htmlize :ensure t) -- cgit 1.4.1