aboutsummaryrefslogtreecommitdiff
path: root/.ai/scripts/lint-org.el
diff options
context:
space:
mode:
Diffstat (limited to '.ai/scripts/lint-org.el')
-rw-r--r--.ai/scripts/lint-org.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/.ai/scripts/lint-org.el b/.ai/scripts/lint-org.el
index 5d47644..05365fe 100644
--- a/.ai/scripts/lint-org.el
+++ b/.ai/scripts/lint-org.el
@@ -42,6 +42,14 @@
(require 'org-lint)
(require 'cl-lib)
(require 'subr-x)
+
+;; wrap-org-table.el lives beside this file. Consumers load lint-org with a
+;; bare `-l path/lint-org.el` (wrap-it-up, /lint-org) — no -L on the load
+;; path — so resolve the sibling from this file's own directory.
+(eval-and-compile
+ (add-to-list 'load-path
+ (file-name-directory (or load-file-name buffer-file-name
+ default-directory))))
(require 'wrap-org-table) ; render-width + table parsing for the table check
(defvar lo-fixes 0