Remove org-format-latex-options :background hack
This will be fixed upstream soon, in solaire-mode.
This commit is contained in:
parent
6a30a11709
commit
a7c3c5a9d2
1 changed files with 2 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue