emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Put latex export buffer in latex-mode?
@ 2010-04-24 18:38 Dan Davison
  2010-04-25  7:14 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Davison @ 2010-04-24 18:38 UTC (permalink / raw)
  To: emacs org-mode mailing list

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?

Dan

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."
     (org-export-latex-fix-inputenc)
     (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"))
     (prog1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-25  7:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-24 18:38 Put latex export buffer in latex-mode? Dan Davison
2010-04-25  7:14 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).