* lisp/org.el (org-cdlatex-mode): Try to load texmathp

Attempt to load texmathp before setting advice.  `texmathp' is
optional and must be loaded before `cdlatex'.
This commit is contained in:
Ihor Radchenko 2023-09-14 12:31:48 +03:00
parent 6fbeac84e6
commit df0539d678
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 4 additions and 0 deletions

View File

@ -15553,6 +15553,10 @@ in Org mode.
\\{org-cdlatex-mode-map}"
:lighter " OCDL"
(when org-cdlatex-mode
;; Try to load texmathp before cdlatex. Otherwise, cdlatex can
;; bind `cdlatex--texmathp' to `ignore', not using `texmathp' at
;; all.
(org-require-package 'texmathp "Auctex")
(org-require-package 'cdlatex)
(run-hooks 'cdlatex-mode-hook)
(cdlatex-compute-tables))