Function: doc-view-minor-mode

doc-view-minor-mode is an autoloaded, interactive and byte-compiled function defined in doc-view.el.gz.

Signature

(doc-view-minor-mode &optional ARG)

Documentation

Toggle displaying buffer via Doc View (Doc View minor mode).

This is a minor mode. If called interactively, toggle the Doc-View minor mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate doc-view-minor-mode(var)/doc-view-minor-mode(fun).

The mode's hook is called both when the mode is enabled and when it is disabled.

See the command doc-view-mode for more information on this mode.

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)
    (message
     "%s"
     (substitute-command-keys
      "Type \\[doc-view-toggle-display] to toggle between editing or viewing the document."))))