From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Put latex export buffer in latex-mode? Date: Sat, 24 Apr 2010 14:38:56 -0400 Message-ID: <87vdbgzoe7.fsf@stats.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5kG6-0004cW-18 for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 14:39:18 -0400 Received: from [140.186.70.92] (port=59344 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5kG2-0004Xg-2d for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 14:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5kFo-0003zy-7V for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 14:39:03 -0400 Received: from markov.stats.ox.ac.uk ([163.1.210.1]:33288) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5kFn-0003zl-VQ for emacs-orgmode@gnu.org; Sat, 24 Apr 2010 14:39:00 -0400 Received: from blackcap.stats.ox.ac.uk (blackcap.stats [163.1.210.5]) by markov.stats.ox.ac.uk (8.13.6/8.13.6) with ESMTP id o3OIcwgC015795 for ; Sat, 24 Apr 2010 19:38:58 +0100 (BST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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