diff --git a/init.el b/init.el index 64c5251..58f3113 100644 --- a/init.el +++ b/init.el @@ -402,16 +402,20 @@ (use-package wc-mode :hook text-mode org-mode) -(defun set-text-modes-font () +(defun my-set-text-modes-font () (interactive) - (setq buffer-face-mode-face '(:family "DejaVu Sans Mono" :height 105) - line-spacing 0.4) + (setq buffer-face-mode-face '(:family "Inter" :height 115) + line-spacing 0.3) (buffer-face-mode)) (use-package org :hook ((org-mode . org-indent-mode) (org-mode . auto-fill-mode) - (org-mode . set-text-modes-font)) + (org-mode . my-set-text-modes-font)) + :custom-face + (org-block ((t (:family "JetbrainsMono Nerd Font" :height 105)))) + (org-code ((t (:family "JetbrainsMono Nerd Font" :height 105)))) + (org-hide ((t (:inherit fixed-pitch)))) :custom (org-list-allow-alphabetical t) (org-hide-emphasis-markers t) @@ -426,7 +430,14 @@ (C . t))) :config (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.1)) - (add-to-list 'org-modules 'org-tempo)) + (add-to-list 'org-modules 'org-tempo) + (with-eval-after-load 'catppuccin-theme + (face-spec-set 'org-table `((t (:family + "DejaVu Sans Mono" + :height + 100 + :foreground + ,(catppuccin-get-color 'subtext0))))))) (use-package org-superstar :custom @@ -446,6 +457,10 @@ (use-package markdown-mode :mode ("README\\.md\\'" . gfm-mode) + :hook (markdown-mode . my-set-text-modes-font) + :custom-face + (markdown-code-face ((t (:family "JetbrainsMono Nerd Font" :height 105)))) + (markdown-inline-code-face ((t (:family "JetbrainsMono Nerd Font" :height 105)))) :custom (markdown-command '("pandoc" "--from=markdown" "--to=html5")))