|»|11 guest@cc 2020-03-18T03:09:06
Semi-off topic, but I used to use w3m.el, but it often took a long time to render the pages. And if you resized the buffer, it would freeze up for a second, so I always bounce back to eww, even though shr can't render as many sites. With w3m you can write a simple function to fetch the url and start a graphical browser
(defun w3m-external-open-graphical-browser ()
In eww, that can be done with shr-external-browser. I find myself opening sites mostly in eww and then switching to qutebrowser when I need it. Conversely, if you use exwm, you can make a macro to fetch the url of the current site on qutebrowser and send that to browse-url. Took that little trick out of exwm-surf.
You can also direct sites to different browsers according to regexp with browse-url-browser-function--little-known fact.
'(("\\(.+\.mp$\\|.+\.jpe?g\\)" . browse-url-image-viewer)
(".+&loop=1$" . qrthi/browse-url-image-viewer)("duckduckgo\.com\/\\?&.+=images.+$" . browse-url-graphical-browser)
("." . w3m-browse-url) ; where w3m-browse-url is a catch-all for everything that doesn't match the above regexp's
That approach is a good alternative to that part of that enjoys obsessively tweaking browser, in my opinion--which is bad because it detracts from the time spent obsessively tweaking Emacs--by offloading all the configurations and bindings to Emacs. Don't even get me started on webjump.