org-odt.el: Improve locating of default styles file.
commit845f7e920516901ed9e9bdb456e7a7e8e057bac2
authorJambunathan K <kjambunathan@gmail.com>
Wed, 18 May 2011 16:35:50 +0000 (18 22:05 +0530)
committerJambunathan K <kjambunathan@gmail.com>
Wed, 18 May 2011 16:35:50 +0000 (18 22:05 +0530)
treedfc666d1adf9ec58a176c1150b809da1c34ebc2c
parentfefc5ccc30bb05e917345f031439fe22fafcb3cd
org-odt.el: Improve locating of default styles file.

* lisp/org-odt.el (org-odt-lib-dir): New constant. Directory that
provides org-odt.
(org-odt-data-dir): New constant. Directory that contains
styles and schema validation files.
(org-odt-file-extensions): All known OpenDocument extensions.
(org-odt-copy-styles-file, org-odt-begin-document-content):
Use org-odt-data-dir to locate defualt styles file.

On load a) enable rng validation of OpenDocument xml files, b)
instruct Org to open all OpenDocument files using the
platform-dependent app c) instruct Emacs to open all
OpenDocument files in archive-mode.
lisp/org-odt.el