Variable: html-autoview-mode-hook

html-autoview-mode-hook is a customizable variable defined in sgml-mode.el.gz.

Value

nil

Documentation

Hook run after entering or leaving html-autoview-mode(var)/html-autoview-mode(fun).

No problems result if this variable is not bound. add-hook automatically binds it. (This is true for all hook variables.)

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/sgml-mode.el.gz
(define-minor-mode html-autoview-mode
  "Toggle viewing of HTML files on save (HTML Autoview mode).

HTML Autoview mode is a buffer-local minor mode for use with
`html-mode'.  If enabled, saving the file automatically runs
`browse-url-of-buffer' to view it."
  :lighter nil
  (if html-autoview-mode
      (add-hook 'after-save-hook #'browse-url-of-buffer nil t)
    (remove-hook 'after-save-hook #'browse-url-of-buffer t)))