diff --git a/configs/init-org.el b/configs/init-org.el index 6a94e25..04b51ad 100644 --- a/configs/init-org.el +++ b/configs/init-org.el @@ -148,7 +148,12 @@ (setq org-startup-with-inline-images t) ;; Mostrar por defecto las imágenes (setq org-display-remote-inline-images 'cache) ;; Mostrar imágenes remotas (setq org-image-actual-width 512) + ) +;; Org-yt para soportar embebidos. +(use-package org-yt + :elpaca (:host github :repo "TobiasZawada/org-yt") + :config (defun org-http-image-data-fn (protocol link _description) "Interpret LINK as an URL to an image file." (when (and (image-type-from-file-name link) @@ -160,12 +165,6 @@ (buffer-substring-no-properties (point) (point-max))) (message "Download of image \"%s\" failed" link) nil))) - ) - -;; Org-yt para soportar embebidos. -(use-package org-yt - :elpaca (:host github :repo "TobiasZawada/org-yt") - :config (org-link-set-parameters "http" :image-data-fun #'org-http-image-data-fn) (org-link-set-parameters "https" :image-data-fun #'org-http-image-data-fn) )