Function: doc-view-custom-set-epub-user-stylesheet

doc-view-custom-set-epub-user-stylesheet is a byte-compiled function defined in doc-view.el.gz.

Signature

(doc-view-custom-set-epub-user-stylesheet OPTION-NAME NEW-VALUE)

Documentation

Setter for doc-view-epub-user-stylesheet.

Reconverts existing epub buffers when the file used as a user stylesheet is switched, or its contents modified.

Source Code

;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defun doc-view-custom-set-epub-user-stylesheet (option-name new-value)
  "Setter for `doc-view-epub-user-stylesheet'.

Reconverts existing epub buffers when the file used as a user
stylesheet is switched, or its contents modified."
  (set-default option-name new-value)
  (file-notify-rm-watch doc-view--epub-stylesheet-watcher)
  (doc-view--epub-reconvert)
  (setq doc-view--epub-stylesheet-watcher
         (when new-value
           (file-notify-add-watch new-value '(change) #'doc-view--epub-reconvert))))