• Tassilo Horn's avatar
    * doc-view.el (doc-view-set-doc-type): New function refactored · 291cc045
    Tassilo Horn authored
    from doc-view-mode.
    (doc-view-fallback-mode): New function.
    (doc-view-mode): Use it.
    (doc-view-mode-maybe): New function that checks if doc-view-mode
    can be used and falls back to the next best mode otherwise.
    * files.el (auto-mode-alist): Use doc-view-mode-maybe for PDF,
    DVI, OpenDocument, and MS Office files.
files.el 260 KB