Simplify org-format-latex-options setting
Due to changes upstream, all that isn't necessary anymore.
This commit is contained in:
parent
e8cd89e451
commit
ee4358a243
1 changed files with 4 additions and 12 deletions
|
@ -124,18 +124,10 @@ path too.")
|
|||
org-refile-use-outline-path 'file
|
||||
org-outline-path-complete-in-steps nil)
|
||||
|
||||
;; Scale up LaTeX previews a bit (default is too small)
|
||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
|
||||
;; ...and fix their background w/ themes
|
||||
(add-hook! 'doom-load-theme-hook
|
||||
(defun +org-refresh-latex-background ()
|
||||
"Previews are usually rendered with light backgrounds, so ensure their
|
||||
background (and foreground) match the current theme."
|
||||
(plist-put! org-format-latex-options
|
||||
:background
|
||||
(face-attribute (or (cadr (assq 'default face-remapping-alist))
|
||||
'default)
|
||||
:background nil t))))
|
||||
(plist-put! org-format-latex-options
|
||||
:scale 1.5 ; larger previews
|
||||
:foreground 'auto ; match the theme foreground
|
||||
:background 'auto) ; ... and its background
|
||||
|
||||
;; 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