From 7974430966131dad81068a506102a915601ed47d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 18 Apr 2024 17:09:27 +0100 Subject: [PATCH] Make org-mode tables more legible with catppuccin-theme Add hook to reload catppuccin after server makes frame to fix some font issues --- init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index d274aca..ccddb98 100644 --- a/init.el +++ b/init.el @@ -448,6 +448,8 @@ Try `magit-clone-default-directory' if available, fall back to (use-package catppuccin-theme :demand + :hook + (server-after-make-frame . catppuccin-reload) :custom (catppuccin-flavour 'mocha) (catppuccin-italic-blockquotes t) @@ -660,8 +662,12 @@ Try `magit-clone-default-directory' if available, fall back to (lua . t) (python . t))) :config - ;; Ensure tables and src blocks use fixed-pitch font - (set-face-attribute 'org-table nil :inherit 'fixed-pitch) + (require 'catppuccin-theme) + ;; Ensure tables and src blocks use fixed-pitch font. Also increase + ;; table foreground contrast to be more legible + (set-face-attribute 'org-table nil + :foreground (catppuccin-get-color 'overlay2) + :inherit 'fixed-pitch) (set-face-attribute 'org-block nil :inherit 'fixed-pitch) ;; Let quote and verse blocks use variable-pitch font, if configured (set-face-attribute 'org-quote nil :inherit 'variable-pitch)