Make org-mode tables more legible with catppuccin-theme
Add hook to reload catppuccin after server makes frame to fix some font issues
This commit is contained in:
parent
726079bffd
commit
7974430966
10
init.el
10
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)
|
||||
|
|
Loading…
Reference in a new issue