* 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:
parent
6fbeac84e6
commit
df0539d678
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue