Variable: doc-view-minor-mode
doc-view-minor-mode is a buffer-local variable defined in
doc-view.el.gz.
Documentation
Non-nil if Doc-View minor mode is enabled.
Use the command doc-view-minor-mode(var)/doc-view-minor-mode(fun) to change this variable.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
;;;###autoload
(define-minor-mode doc-view-minor-mode
"Toggle displaying buffer via Doc View (Doc View minor mode).
See the command `doc-view-mode' for more information on this mode."
:lighter " DocView"
(when doc-view-minor-mode
(add-hook 'change-major-mode-hook
(lambda ()
(doc-view-minor-mode -1))
nil t)
;; OpenDocuments are archive files, so their editing mode is
;; archive-mode. When editing and saving a file in that archive,
;; it'll automatically revert the archive buffer. Take care to
;; re-enable `doc-view-minor-mode' in that case.
(add-hook 'revert-buffer-restore-functions
(lambda ()
(lambda ()
(unless (derived-mode-p 'doc-view-mode)
(doc-view-minor-mode 1))))
nil t)
(message
"%s"
(substitute-command-keys
"Type \\[doc-view-toggle-display] to toggle between editing or viewing the document."))))