Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • If you have access to the w3m executable, then there is a complimentary Lisp library that can help you view an html file like a web-browser (within Emacs) -- although, not as fancy as Firefox and so forth. Another library (which I believe is all Lisp and does not require an executable) is called shr -- I've only used it once and am by no means an expert. Although I love to do everything in Emacs, if you are doing any sort of web development, then you will want to do a start-process or the equivalent thereof and use the real browser that your target audience will be using. Commented Jul 25, 2018 at 4:49
  • In terms of a live-preview (e.g., via the post-command-hook), there will undoubtedly be a significant trade-off in terms of performance in Emacs because the working buffer will need to be rendered every command loop and updated in the target buffer. The slow-down in performance is probably a deal-breaker, but maybe you'll have good luck ... Perhaps after every save would be a better way to do it ... [Personally, I rsync a draft to the shared server and view the live draft version in an external web browser.] Commented Jul 25, 2018 at 4:54
  • @lawlist Your point about the live preview is well-taken. I have updated the question. Commented Jul 25, 2018 at 10:20
  • Not an exact duplicate, because it doesn't discuss scrolling, but the answers on this question may help: emacs.stackexchange.com/questions/476/… Commented Nov 1, 2020 at 10:08