-
Notifications
You must be signed in to change notification settings - Fork 234
EAF implements three major functionalities:
- Integrate PyQt program window into Emacs frame using QWindow Reparent technology.
- Listen to EAF buffer's keyboard event flow and control the keyboard input of the PyQt program via Python EPC.
- Create a window composite to make a PyQt program window adapt Emacs' Window/Buffer design.
Learn more from the Architecture page.
- EAF and EXWM share a common goal: enhance collaboration between the standard GNU Emacs with other GUI tools.
- EXWM is an X11 Window Manager, it manages and controls other software using a keyboard, but it cannot modify, customize and extend the behavior of other software.
- EAF is not a Window Manager, it utilizes the windows managing capabilities of Emacs to display its applications.
- EAF intends to provide a framework to write PyQt applications that extends the multimedia experience of Emacs. From the perspective of Emacs' buffer/mode design, EAF is not different from any other package, with the former uses Qt for drawing contents while the latter uses Emacs' built-in text libraries instead.
- Through EAF's design, one can use Elisp to control Python and vice versa, and even able to use Elisp to control JavaScript in EAF Browser. EAF enables Emacs to the world of multi-language scripting.
Both projects are similar in terms of interface, but they are two completely different projects with different goals in mind. Sometimes one may find EAF is more suitable than EXWM, sometimes it's the other way around. Please do not meaninglessly compare them.
Put below code in your config, make sure some EAF application, such as jupyter, terminal can works with local shell enviroment.
(require 'exec-path-from-shell)
(exec-path-from-shell-initialize)
Currently, macOS is only partially supported and needs a lot of testing, not all functions can work normally, please check the Wiki for details.
EAF confirms that the desktop environment or window manager you can work with includes: KDE, Gnome2, Gnome3, Mate, Xfce, LXDE, Sway, i3, QTile, Xpra, EXWM.
We suspect there are some issues with how all the Window Managers implement their x11 protocols.
One workaround is to name of command wmctrl -m
to the elisp list eaf-wm-focus-fix-wms
. Fill an issue if it still doesn't work.
If you need to use a proxy to access the internet, one can configure the proxy settings.
(setq eaf-proxy-type "http")
(setq eaf-proxy-host "127.0.0.1")
(setq eaf-proxy-port "1080")
If you use Socks5 as a local proxy, one can set proxy type with:
(setq eaf-proxy-type "socks5")
Customize rule proxy please check Wiki
Key | Event |
---|---|
C-h m |
eaf-describe-bindings |
C-c b |
eaf-open-bookmark |
C-c e |
eaf-open-external |
C-c i |
eaf-import-chrome-bookmarks |
M-0 |
eaf-get-buffer-screenshot |
M-/ |
eaf-get-path-or-url |
M-' |
eaf-toggle-fullscreen |
M-[ |
eaf-share-path-or-url |
Key | Event |
---|---|
C-c C-c |
eaf-edit-buffer-confirm |
C-c C-k |
eaf-edit-buffer-cancel |
C-c C-t |
eaf-edit-buffer-switch-to-org-mode |