Previous: Page ready, Up: Hooks [Contents][Index]
‘wwe-mode-hook’ is a hook that’s run when ‘wwe-mode’ is called, ‘wwe-minor-mode-hook’ is a hook that’s run when ‘wwe-minor-mode’ is called.
When opening a local file, ‘wwe-mode-hook’ is run after inserting the file and setting the directory.
‘wwe-mode-hook’ is run from within ‘wwe-url-callback’ after inserting the page or error message, after running ‘wwe-change-html-functions’ when rendering HTML, or before inserting an image in its own buffer.
Some useful modes for wwe-mode are:
‘wwe-minor-mode-hook’ is run from within ‘wwe-url-retrieve’ after selecting the buffer for a URL it isn’t handling, after switching to the appropriate mode and setting font-lock, or after ‘wwe-doc-view’ inserts the file and calls ‘doc-view-mode’. In Gnus, it’s run after rendering the HTML region.