views:

62

answers:

1

The title says it all! Do there exist an emacs mode for openoffice.org (compressed) package files? For instance, it could decompress each of the included xml files, and open each of them in its own buffer?

+3  A: 

I've written a python library for Impress (using emacs). Since odf files are really just .zip files, the following was extremely useful in my .emacs:

;; Use archive mode to open Python eggs
(add-to-list 'auto-mode-alist '("\\.egg\\'" . archive-mode))
;; and OOo files
(add-to-list 'auto-mode-alist '("\\.odp\\'" . archive-mode))
(add-to-list 'auto-mode-alist '("\\.otp\\'" . archive-mode))

I should add that when you edit (and save) a file in the zip file using archive mode, it zips it back up, speeding up debugging....

matt harrison