From 018a95cf32a7a31bbff5a6e739030f25accb57d6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 4 Oct 2020 18:24:59 -0400 Subject: [PATCH] Fix #4023: background mismatch for latex previews A doom-load-theme-hook hook fixes the background of latex previews, but by the time org is loaded, this hook will have long since triggered, giving it no change to update its background, so we must run it at least once, immediately. --- modules/lang/org/config.el | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 2d6bbf6ba..359f3bc41 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -142,6 +142,7 @@ This forces it to read the background before rendering." remap) 'default) :background nil t)))) + (+org-refresh-latex-background-h) ;; HACK Face specs fed directly to `org-todo-keyword-faces' don't respect ;; underlying faces like the `org-todo' face does, so we define our own