unoffice

Reclaim text from office documents
git clone https://logand.com/git/unoffice.git/
Log | Files | Refs | README

commit 8614dc89e7095bab946650bca06b33f8491c4049
parent a22bb22ab0ac64a427f7039b29bd39801e177eff
Author: Tomas Hlavaty <tom@logand.com>
Date:   Thu, 26 Sep 2019 07:28:17 +0200

add to auto-mode-alist automatically

Diffstat:
Munoffice.el | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/unoffice.el b/unoffice.el @@ -1,6 +1,3 @@ -;;(add-to-list 'auto-mode-alist '("\\.abw\\'" . unabw)) -;;(add-to-list 'auto-mode-alist '("\\.docx\\'" . undocx)) -;;(add-to-list 'auto-mode-alist '("\\.odt\\'" . unodt)) (defun unoffice-buffer (program) (setq buffer-read-only nil) @@ -22,4 +19,8 @@ (defun unodt () (unoffice-buffer "unodt")) +(add-to-list 'auto-mode-alist '("\\.abw\\'" . unabw)) +(add-to-list 'auto-mode-alist '("\\.docx\\'" . undocx)) +(add-to-list 'auto-mode-alist '("\\.odt\\'" . unodt)) + (provide 'unoffice)