In Emacs, we have made all the `foo-load-hook' variables obsolete in
favor of `with-eval-after-load'. The attached patch does the same for
org-mode.
From dcf7bfa11a2d27ca9fd44d8fd11440e033b2c567 Mon Sep 17 00:00:00 2001
From: Stefan Kangas
Date: Fri, 7 May 2021 14:50:48 +0200
Subject: [PATCH] Make org-load-hook obsolete
* lisp/org.el (org-load-hook): Make obsolete in favor of
with-eval-after-load.
---
lisp/org.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/org.el b/lisp/org.el
index 675a614e2..39a44016e 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -653,6 +653,8 @@ defined in org-duration.el.")
"Hook that is run after org.el has been loaded."
:group 'org
:type 'hook)
+(make-obsolete-variable 'org-load-hook
+"use `with-eval-after-load' instead." "Org 9.5")
(defcustom org-log-buffer-setup-hook nil
"Hook that is run after an Org log buffer is created."
--
2.30.2