From d622d2f7091e47b6bc0c540b482fc148e7d74935 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 19 Oct 2011 18:56:13 +0200 Subject: [PATCH] Make sure cdlatex customization is taken into account properly * lisp/org.el (org-cdlatex-mode): Run cdlatex-mode-hook and update the internal cdlatex tables. --- lisp/org.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 6aba1a2f0..9441cf4f7 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -16381,7 +16381,10 @@ This mode supports entering LaTeX environment and math in LaTeX fragments in Org-mode. \\{org-cdlatex-mode-map}" nil " OCDL" nil - (when org-cdlatex-mode (require 'cdlatex)) + (when org-cdlatex-mode + (require 'cdlatex) + (run-hooks 'cdlatex-mode-hook) + (cdlatex-compute-tables)) (unless org-cdlatex-texmathp-advice-is-done (setq org-cdlatex-texmathp-advice-is-done t) (defadvice texmathp (around org-math-always-on activate) -- 2.11.4.GIT