Editing html is good but I really would like to have a way of fast previewing the changes that I made. Is there e.g. a script to open Chromium or refresh a site for that?

  • 1
    Look for impatient-mode
    – Dan
    Apr 27 '17 at 19:30

You have some options: http://wikemacs.org/wiki/Markdown#Impatient-mode the best for html looking to be impatient-mode, it allows to see the changes in your browser while you type.

After intsallation (in melpa) it is just a matter of

M-x httpd-start


M-x impatient-mode

and then open your browser to http://localhost:8080/imp/

  • This seems to mirror what i see in emacs. I expected my browser to display the rendering of the html document that I am editing.
    – kidmose
    Jan 22 '21 at 10:31
  • It is supposed to. Now testing I see a "forbidden" message. Maybe new browser policies prevent it from rendering. I'd like someone to confirm it still works on FF >= 83.
    – Ehvince
    Jan 22 '21 at 10:43

You have many options depending on tools you use and setup you want. The first one does not need anything to be installed:

  1. M-x browse-url-of-buffer
  2. https://github.com/skeeto/skewer-mode
  3. https://github.com/skeeto/impatient-mode
  4. https://github.com/yukihr/Warp

Not the answer you're looking for? Browse other questions tagged or ask your own question.