Function: image-minor-mode
image-minor-mode is an autoloaded, interactive and byte-compiled
function defined in image-mode.el.gz.
Signature
(image-minor-mode &optional ARG)
Documentation
Toggle Image minor mode in this buffer.
This is a minor mode. If called interactively, toggle the Image
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 image-minor-mode(var)/image-minor-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Image minor mode provides the key C-c C-c (image-toggle-display),
to switch back to image-mode and display an image file as the
actual image.
Probably introduced at or before Emacs version 23.2.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/image-mode.el.gz
;;;###autoload
(define-minor-mode image-minor-mode
"Toggle Image minor mode in this buffer.
Image minor mode provides the key \\<image-mode-map>\\[image-toggle-display],
to switch back to `image-mode' and display an image file as the
actual image."
:lighter (:eval (if image-type (format " Image[%s]" image-type) " Image"))
:group 'image
:version "22.1"
(if image-minor-mode
(add-hook 'change-major-mode-hook (lambda () (image-minor-mode -1)) nil t)))