Browse Source

org-export: Modify dispatcher to accommodate e-odt backend

* contrib/lisp/org-export.el (org-export-dispatch)
(org-export-dispatch-ui): New entries for ODT backend.
Jambunathan K 13 years ago
parent
commit
bfd31d7268
1 changed files with 9 additions and 0 deletions
  1. 9 0
      contrib/lisp/org-export.el

+ 9 - 0
contrib/lisp/org-export.el

@@ -3247,6 +3247,12 @@ Return an error if key pressed has no associated command."
       (?b (org-open-file
 	   (org-e-html-export-to-html
 	    (memq 'subtree optns) (memq 'visible optns) (memq 'body optns))))
+      ;; Export with `e-odt' back-end.
+      (?o (org-e-odt-export-to-odt
+	   (memq 'subtree optns) (memq 'visible optns) (memq 'body optns)))
+      (?O (org-open-file
+	   (org-e-odt-export-to-odt
+	    (memq 'subtree optns) (memq 'visible optns) (memq 'body optns))))
       ;; Publishing facilities
       (?F (org-e-publish-current-file (memq 'force optns)))
       (?P (org-e-publish-current-project (memq 'force optns)))
@@ -3294,6 +3300,9 @@ final interactive export options as CDR."
 \[h] to HTML file              [b] ... and open it
 \[H] to temporary buffer
 
+---------------------  ODF Export  -----------------------
+\[o] to ODT file               [O] ... and open it
+
 ------------------------- Publish -------------------------
 \[F] current file              [P] current project
 \[X] a project                 [E] every project"