summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJambunathan K <kjambunathan@gmail.com>2012-02-18 22:37:20 +0530
committerJambunathan K <kjambunathan@gmail.com>2012-02-18 22:39:58 +0530
commitf1e5dfdbe95d3349602fc14daae90c1b4fbdc78e (patch)
treeaa3fedd68cb2f17ecdef3e3fecec6b61071e85ff
parent1feac494761ed5997a652619e45d1cd72db961e7 (diff)
downloadorg-mode-f1e5dfdbe95d3349602fc14daae90c1b4fbdc78e.tar.gz
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.
-rw-r--r--contrib/lisp/org-export.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el
index 4aa9c40..4cd4710 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