[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: DocView now supports OpenDocument & MS Office formats
From: |
Stefan Monnier |
Subject: |
Re: DocView now supports OpenDocument & MS Office formats |
Date: |
Thu, 30 Dec 2010 11:04:25 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> So something along the lines of:
> - ("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)
> + ,(if (executable-find "unoconv")
> +
> ("\\.\\(?:PDF\\|DVI\\|OD[FGPST]\\|DOCX?\\|XLSX?\\|pdf\\|dvi\\|od[fgpst]\\|docx?\\|xlsx?\\)\\'"
> . doc-view-mode)
> + '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode))
Could be an approach, except that files.el is preloaded, so that would
be evaluated at dump time rather than run time. Another is to link them
to doc-view-mode-maybe which would first check whether doc-view-mode can
really be used and fallback to the next best choice otherwise (could
even remove itself from auto-mode-alist at that point, tho it's not
clear that it would be useful).
Stefan
Re: DocView now supports OpenDocument & MS Office formats, Tassilo Horn, 2010/12/30