I want a pop-up window display web multimedia content, such as, translation tooltip, LaTex preview, code completion etc.
Browser related technology comes from my other project Emacs Application Framework
- Make sure install PyQt5 from your operating system repository (DON'T install PyQt5 from pip, otherwise browser will crash)
- Install library python-epc
- Clone or download this repository (path of the folder is the
<path-to-popweb>
used below). - In your
~/.emacs
, add the following two lines:
(add-to-list 'load-path "<path-to-popweb>") ; add popweb to your load-path
(require 'popweb-dict-bing)
(require 'popweb-dict-youdao)
(require 'popweb-katex)
- popweb-dict-bing-input: popup input translation window with Bing
- popweb-dict-youdao-input: popup input translation window with Youdao
- popweb-dict-bing-pointer: popup pointer translation window with Bing
- popweb-dict-youdao-pointer: popup pointer translation window with Youdao
- popweb-katex-show: show LaTex preview
- popweb-katex-update: update LaTex preview
- popweb-katex-hide: hide LaTex preview
If you need to use a proxy to access the internet, one can configure the proxy settings.
(setq popweb-proxy-type "http")
(setq popweb-proxy-host "127.0.0.1")
(setq popweb-proxy-port "1080")
If you use Socks5 as a local proxy, one can set proxy type with:
(setq popweb-proxy-type "socks5")