[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Put latex export buffer in latex-mode?

From: Dan Davison
Subject: [Orgmode] Put latex export buffer in latex-mode?
Date: Sat, 24 Apr 2010 14:38:56 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

C-e H brings up the exported html in an html-mode buffer, but C-e L
brings up a fundamental-mode buffer rather than latex-mode. Is this an
oversight or is there a reason for this?


p.s. I could use org-export-latex-after-save-hook, or a change to the
source could be something like this

        Modified lisp/org-latex.el
diff --git a/lisp/org-latex.el b/lisp/org-latex.el
index 67d9745..3d31248 100644
--- a/lisp/org-latex.el
+++ b/lisp/org-latex.el
@@ -797,6 +797,7 @@ when PUB-DIR is set, use this as the publishing directory."
     (run-hooks 'org-export-latex-after-save-hook)
     (goto-char (point-min))
+    (latex-mode)
     (or (org-export-push-to-kill-ring "LaTeX")
        (message "Exporting to LaTeX...done"))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]