I know I can use M-x browse-url-of-buffer
to create a temp file and render it on my default browser. But how could I render it with eww
?
I tried the function suggested here, but I get the error message that says:
eww-display-html: Buffer nil doesn’t exist
The use case is the following:
- Export org as HTML (to a temp buffer);
- Render the HTML to a browser, my default browser or eww.
Any suggestions?
I’ve always used
(shr-render-buffer (current-buffer))
. I don’t know the differences fromeww-display-html
, but one is that it pops up a buffer named*html*
and renders it there.Thanks!