From 9399a3e372dbd207228523e5be7d36858c688769 Mon Sep 17 00:00:00 2001 From: KJ Date: Sat, 30 Sep 2023 17:47:50 -0400 Subject: [PATCH] Move function inside the apropiate block. --- configs/init-org.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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) )