From f1e5dfdbe95d3349602fc14daae90c1b4fbdc78e Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sat, 18 Feb 2012 22:37:20 +0530 Subject: [PATCH] org-export: Put HTML buffers in either nxhtml-mode or nxml-mode * contrib/lisp/org-export.el (org-export-dispatch): Put temporary buffer that holds exported HTML source in either `nxhtml-mode' or `nxml-mode'. `nxhtml-mode' is *not* part of stock Emacs while `nxml-mode' is. --- contrib/lisp/org-export.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el index 4aa9c40ac..4cd4710d3 100644 --- a/contrib/lisp/org-export.el +++ b/contrib/lisp/org-export.el @@ -3218,7 +3218,9 @@ Return an error if key pressed has no associated command." (org-export-to-buffer 'e-html "*Org E-HTML Export*" (memq 'subtree optns) (memq 'visible optns) (memq 'body optns)))) - (with-current-buffer outbuf (nxhtml-mode)) + ;; set major mode + (with-current-buffer outbuf + (if (featurep 'nxhtml-mode) (nxhtml-mode) (nxml-mode))) (when org-export-show-temporary-export-buffer (switch-to-buffer-other-window outbuf)))) (?h (org-e-html-export-to-html