Skip to content
Andy Stewart edited this page Mar 9, 2020 · 26 revisions

There are certain variables will be shared across Emacs Lisp and Python. You can easily configure then with the function eaf-setq.

Check the full list of configurable variables with C-h v eaf-var-list

EAF Browser

Make EAF the Default Browser in Emacs

You are welcomed to make EAF Browser your default browser within Emacs.

(setq browse-url-browser-function 'eaf-open-browser)
(defalias 'browse-web #'eaf-open-browser)

Customize Download Path

Browser will download file under ~/Downloads, you can customize download path with below code:

(eaf-setq eaf-browser-download-path "other_path")

Customize Aria2 Proxy

Aria2 only support HTTP proxy, you can use below code set HTTP proxy for aria2c:

(eaf-setq eaf-browser-aria2-proxy-host "127.0.0.1")
(eaf-setq eaf-browser-aria2-proxy-port "port")

If local only have socks5 proxy, you perhaps need privoxy convert socks5 proxy to http proxy.

Disable Saving Browsing History

The browsing history is automatically saved, by default. It is helpful for users to find a previous opened page using M-x eaf-open-browser-with-history. You can turn that off by

(eaf-setq eaf-browser-remember-history "false")

Default Search Engine

You can search for any string using M-x eaf-open-browser, M-x eaf-open-browser-with-history or M-x eaf-search-it. The default search engine used by EAF Browser is Google, as specified in the eaf-browser-default-search-engine variable. You can change it by

(setq eaf-browser-default-search-engine 'duckduckgo)

Default “Blank” Page

The default blank page is https://www.google.com, it is opened by (eaf-proxy-new_blank_page) by default.

You can configure it by

(eaf-setq eaf-browse-blank-page-url "https://duckduckgo.com")

Default Zoom

Default zoom of EAF Browser is 1.0, you can set the default zoom by

(eaf-setq eaf-browser-default-zoom "1.25")

Disable JavaScript

For reasons, some people may prefer to disable JavaScript for the EAF Browser. The option has been provided.

(eaf-setq eaf-browser-enable-plugin "false")
(eaf-setq eaf-browser-enable-javascript "false")

We don’t recommend it, you will lose a lot of features that EAF Browser provided.

EAF Camera

The default directory to store images taken by EAF Camera is ~/Downloads. You can change it like this.

(eaf-setq eaf-camera-save-path "new/path/")
Clone this wiki locally