3

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
  • 1
    Look for impatient-mode
    – Dan
    Commented Apr 27, 2017 at 19:30

2 Answers 2

6

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

and

M-x impatient-mode

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

2
  • 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
    Commented Jan 22, 2021 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
    Commented Jan 22, 2021 at 10:43
2

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.