skeeto / impatient-mode

Impatient html mode. See your changes in the browser as you type
215 stars 19 forks source link

Dealing with a slow filter? #36

Closed didibus closed 2 years ago

didibus commented 2 years ago

I'm using impatient-mode on markdown buffers and pandoc to render it as HTML. The problem is, it makes things lag a bit, because pandoc can't keep up with the rate at which I type.

I wonder if there's anything that could be done to help, configure the number of edits before it re-renders, or have it only re-render every X seconds, or only on save? Something else?

Thank You

didibus commented 2 years ago

This solved it for me:

(setq impatient-mode-delay 1)

It waits 1 second after typing before re-rendering.