mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Make org-yt respect org-display-remote-inline-images
This commit is contained in:
@ -421,7 +421,11 @@ relative to `org-directory', unless it is an absolute path."
|
|||||||
(org-link-set-parameters "img" :image-data-fun #'+org-inline-image-data-fn)
|
(org-link-set-parameters "img" :image-data-fun #'+org-inline-image-data-fn)
|
||||||
|
|
||||||
;; Add support for youtube links + previews
|
;; Add support for youtube links + previews
|
||||||
(require 'org-yt nil t))
|
(require 'org-yt nil t)
|
||||||
|
(defadvice! +org-dont-preview-if-disabled-a (&rest _)
|
||||||
|
"Make `org-yt' respect `org-display-remote-inline-images'."
|
||||||
|
:before-while #'org-yt-image-data-fun
|
||||||
|
(not (eq org-display-remote-inline-images 'skip))))
|
||||||
|
|
||||||
|
|
||||||
(defun +org-init-export-h ()
|
(defun +org-init-export-h ()
|
||||||
|
Reference in New Issue
Block a user