refactor!(org): remove org-yt

BREAKING CHANGE: This removes the org-yt package, which will break
[[yt:...]] links in org, if you're using them. The package is a source
of errors, likely because it hasn't been updated for Org's new element
parsing system.

This package was originally included for eventual use in Doom's
documentation, but it likely won't be used and isn't universally useful
enough to keep in this module by default.

Fix: #7913
Fix: #7317
This commit is contained in:
Henrik Lissner 2024-07-01 18:21:35 -04:00
parent 481753bd5e
commit 321f2d2249
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 1 additions and 13 deletions

View file

@ -111,7 +111,6 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode
- [[doom-package:org-pomodoro]] if [[doom-module:+pomodoro]] - [[doom-package:org-pomodoro]] if [[doom-module:+pomodoro]]
- [[doom-package:org-roam]] (v1) if [[doom-module:+roam]] - [[doom-package:org-roam]] (v1) if [[doom-module:+roam]]
- [[doom-package:org-roam]] (v2) if [[doom-module:+roam2]] - [[doom-package:org-roam]] (v2) if [[doom-module:+roam2]]
- [[doom-package:org-yt]]
- [[doom-package:ox-clip]] - [[doom-package:ox-clip]]
- [[doom-package:ox-hugo]] if [[doom-module:+hugo]] - [[doom-package:ox-hugo]] if [[doom-module:+hugo]]
- [[doom-package:ox-pandoc]] if [[doom-module:+pandoc]] - [[doom-package:ox-pandoc]] if [[doom-module:+pandoc]]

View file

@ -656,15 +656,7 @@ relative to `org-directory', unless it is an absolute path."
(setq org-display-remote-inline-images 'download) ; TRAMP urls (setq org-display-remote-inline-images 'download) ; TRAMP urls
(org-link-set-parameters "http" :image-data-fun #'+org-http-image-data-fn) (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) (org-link-set-parameters "https" :image-data-fun #'+org-http-image-data-fn)
(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
(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 ()

View file

@ -39,9 +39,6 @@
(package! avy) (package! avy)
(package! htmlize :pin "ed5e5b05fd260e8f161a488d56f10e7f6e01fb75") (package! htmlize :pin "ed5e5b05fd260e8f161a488d56f10e7f6e01fb75")
(package! org-yt
:recipe (:host github :repo "TobiasZawada/org-yt")
:pin "56166f48e04d83668f70ed84706b7a4d8b1e5438")
(package! ox-clip :pin "a549cc8e1747beb6b7e567ffac27e31ba45cb8e8") (package! ox-clip :pin "a549cc8e1747beb6b7e567ffac27e31ba45cb8e8")
(package! toc-org :pin "6d3ae0fc47ce79b1ea06cabe21a3c596395409cd") (package! toc-org :pin "6d3ae0fc47ce79b1ea06cabe21a3c596395409cd")
(package! org-cliplink :pin "13e0940b65d22bec34e2de4bc8cba1412a7abfbc") (package! org-cliplink :pin "13e0940b65d22bec34e2de4bc8cba1412a7abfbc")