commit a8de13a988822f965b9dd2574c13239b03550818 from: Isaac Meerleo date: Tue Jun 16 14:40:33 2026 UTC Add prose font + scaled org headline faces Enable mixed-pitch for prose (Noto Sans) in org/markdown/fountain while keeping code, tables, headlines, and tags monospace. Scale org-level faces so heading levels are visually distinct. commit - 353cceddc78b4c1ddea71ccb31e13308f0c6830e commit + a8de13a988822f965b9dd2574c13239b03550818 blob - 5b8947d23bd03bf818b384e08b46fd6a03e3bc24 blob + 56844878c086c6e64f96d9738d1a3589472411e1 --- doom/config.el +++ doom/config.el @@ -35,6 +35,36 @@ (setq catppuccin-flavor 'frappe) ;; or 'latte, 'macchiato, or 'mocha (setq doom-theme 'catppuccin) +;; Proportional font for prose. `mixed-pitch-mode' (from the :ui zen module) +;; swaps body text to this font while keeping code, tables, line numbers, and +;; inline verbatim monospace. +(setq doom-variable-pitch-font (font-spec :family "Noto Sans" :size 16)) +(add-hook 'org-mode-hook #'mixed-pitch-mode) +(add-hook 'markdown-mode-hook #'mixed-pitch-mode) +(add-hook 'fountain-mode-hook #'mixed-pitch-mode) + +;; Doom ships org headlines all at the same height; scale them so heading +;; levels are visually distinct. Float heights are relative to the default. +(custom-set-faces! + '(org-document-title :weight medium :height 1.4) + '(org-level-1 :weight medium :height 1.3) + '(org-level-2 :weight medium :height 1.2) + '(org-level-3 :weight normal :height 1.15) + '(org-level-4 :weight normal :height 1.1) + '(org-level-5 :weight normal :height 1.05) + '(org-level-6 :weight normal) + '(org-level-7 :weight normal) + '(org-level-8 :weight normal)) + +;; Keep headline lines and tags monospace so right-aligned tags line up on +;; their column; only body text uses Cantarell. (org-document-title is already +;; in mixed-pitch's default fixed list; org-level-* and org-tag are not.) +(after! mixed-pitch + (dolist (face '(org-level-1 org-level-2 org-level-3 org-level-4 + org-level-5 org-level-6 org-level-7 org-level-8 + org-tag)) + (add-to-list 'mixed-pitch-fixed-pitch-faces face))) + ;; This determines the style of line numbers in effect. If set to `nil', line ;; numbers are disabled. For relative line numbers, set this to `relative'. (setq display-line-numbers-type t)