diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index f2cd2ae56..3ec908bb1 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -129,21 +129,9 @@ Is relative to `org-directory', unless it is absolute. Is used in Doom's default org-refile-use-outline-path 'file org-outline-path-complete-in-steps nil) + ;; Previews are rendered with the incorrect background (plist-put org-format-latex-options :scale 1.5) ; larger previews - (add-hook! 'doom-load-theme-hook - (defun +org-refresh-latex-background-h () - "Previews are rendered with the incorrect background. -This forces it to read the background before rendering." - (plist-put! org-format-latex-options - :background - (face-attribute (if-let (remap (cadr (assq 'default face-remapping-alist))) - (if (keywordp (car-safe remap)) - (plist-get remap :background) - remap) - 'default) - :background nil t)))) - (when doom-init-theme-p - (+org-refresh-latex-background-h)) + (plist-put org-format-latex-options :background 'default) ; larger previews ;; 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