/html-preview

Preview html files inside Emacs' webkit xwidget

Primary LanguageEmacs Lisp

html-preview

Preview html files inside Emacs’ webkit xwidget

Copyright (C) 2016 Puneeth Chaganti

This file is not part of GNU Emacs.

Licensed under the GPL version 3 or later.

Dependencies

Requires Emacs to be compiled with xwidgets support

Commentary

Provides html-preview which is a function to preview current file exported inside Emacs. Uses xwidgets as opposed to org-eww which uses eww make changes. This allows viewing Reveal.js presentations, for instance.

(require 'html-preview)
;; Turn on the minor mode in your source buffer
;; M-x html-preview-minor-mode

;; By default previews are generated only on save.
;; If you wish to enable previews for every change, set
;; ~html-preview-after-change-idle-delay~ to some value in seconds.
(setq html-preview-after-change-idle-delay 0.4)

Demo

./demo.gif

README.org generated from the library header in html-preview.el by h2o