English | 简体中文
Emacs, the extensible text editor, is more than 45 years old. It is older than virtually all operating systems people use today, almost as old as the first UNIX system. During the decades of development, the world's brightest hackers have contributed their intelligence and creativity. Together they've constructed the most comprehensive and richest ecosystem that you can find in any software to date.
If you are a hacker who works with numerous languages and text, who's keyboard-driven and desires maximum freedom, extensibility, and introspectivity over your tool, maybe to the extent of living in it, Emacs will be your best bet.
Unfortunately, this 45 years of age is also one of the greatest disadvantages of Emacs. Comparing with modern software, Emacs lacks performance. Specifically Emacs Lisp lacks performance. It doesn't have proper multithreading and its graphical capabilities are seriously limited. It is far from what you'd expect from any GUI application today (such as IDEA or VSCode). You may think that Emacs, as a text-centric editor, doesn't need them, but have you ever run into a situation that, you sit comfortably typing commands and doing your Emacs sorcery, but can't help but ponder:
What if Emacs has a real browser? What if this PDF or video file can be viewed efficiently without leaving Emacs?
Emacs, although infinitely extensible in text, is very limited in graphics. It shouldn't have to be this way. However, Emacs Lisp is the integral part of the Emacs culture, it carries decades of history with itself, it is what makes Emacs special. It is irreplaceable.
EAF is very extensible. It already comes with a number of useful applications by default:
|Music Player||File Manager|
|Extend Emacs with EAF||Emacs Application Framework: A 2021 Update|
- Browser: Full-featured browser
- PDF Viewer: The fastest PDF reader
- Terminal: Full-featured terminal
- Video Player: Video player base on Qt
- Markdown Previewer: Markdown file previewer in Emacs
- Org Previewer: Org file previewer in Emacs
- Music Player: Music player, support playlist and an audio visualization
- RSS Reader: RSS reader, rendering html content in expected
- File Manager: File manager, support file real-time preview
- Git Client: Fastest git client in Emacs
- Mindmap: Mindmap with full-featured keyboard operation
- Jupyter: Jupyter in Emacs
- Image Viewer: Picture viewer, supporting real-time zoom rotation
- Camera: Use camera in Emacs
- System Monitor: System monitor base on Vue.js
- Netease Cloud Music: EAF frontend for NetEase cloud music
- File Browser: Browse file in mobile phone
- File Sender: Share file between Emacs and mobile phone
- Airshare: Share text between Emacs and mobile phone
- Demo: EAF Application demo base on Qt
- Vue Demo: EAF Application demo base on Vue.js
EAF supports Linux (X11 and Wayland), Windows, macOS and FreeBSD. The installation method is very simple.
1. Download EAF
git clone --depth=1 -b master https://github.com/emacs-eaf/emacs-application-framework.git ~/.emacs.d/site-lisp/emacs-application-framework/
2. Install/Update EAF applications and dependencies
You can use
M-x eaf-install-and-update or manually run the
install-eaf.py script in the EAF directory:
cd emacs-application-framework chmod +x ./install-eaf.py ./install-eaf.py
There are many useful flags available for
install-eaf.py, check it yourself using
3. Load EAF Core
From here on, you can add the full path to the EAF installation directory to your Emacs
load-path, then add the following to
(add-to-list 'load-path "~/.emacs.d/site-lisp/emacs-application-framework/") (require 'eaf)
Alternatively, if you use use-package, you can use the following sample configuration for your convenience.
(use-package eaf :load-path "~/.emacs.d/site-lisp/emacs-application-framework" :custom ; See https://github.com/emacs-eaf/emacs-application-framework/wiki/Customization (eaf-browser-continue-where-left-off t) (eaf-browser-enable-adblocker t) (browse-url-browser-function 'eaf-open-browser) :config (defalias 'browse-web #'eaf-open-browser) (eaf-bind-key scroll_up "C-n" eaf-pdf-viewer-keybinding) (eaf-bind-key scroll_down "C-p" eaf-pdf-viewer-keybinding) (eaf-bind-key take_photo "p" eaf-camera-keybinding) (eaf-bind-key nil "M-q" eaf-browser-keybinding)) ;; unbind, see more in the Wiki
4. Load EAF Apps
You can use below code to load applications
pdf-viewer that you installed. Please check Applications for the full list:
(require 'eaf-browser) (require 'eaf-pdf-viewer) ...
Congratulations, you just installed EAF! You can try
M-x eaf-open-demo (that is if you have
demo installed, of course) to see if everything works properly, and enjoy the new possibilities of Emacs.
Below are launch commands of EAF Applications:
|HTML Email Renderer||
|MS Office Viewer||
- EAF Browser and PDF Viewer support Emacs built-in bookmark operation, with
M-x bookmark-set(defaulted to
C-x r m) and
M-x bookmark-bmenu-list(defaulted to
C-x r l).
Also, you should regularly
git pull and run
M-x eaf-install-and-update) to update EAF, its applications, and relating dependencies.
If you encounter a problem with EAF, and it occurred after pulling the latest commit, please check the Mandatory Procedures to Keep Your EAF Up-To-Date page first.
For any other problems, please use
emacs -q and load a minimal setup with only EAF to verify that the bug is reproducible. If
emacs -q works fine, probably something is wrong with your Emacs config.
If the problem persists, please report it here with the
*eaf* buffer content. It contains many clues that can help us locate the problem faster.
If you get a segfault error, please use the following way to collect crash information:
- Install gdb and turn on option
(setq eaf-enable-debug t)
- Use the command
eaf-stop-processto stop the current process
- Restart eaf, send issue with
*eaf*buffer content when next crash
EAF in the community
A list of other community packages that use EAF to enhance their graphical experiences!
If we missed your package, please make a PR to add it to the list.
- obr-viz: visualizing org-brain relationships using EAF
- netease-cloud-music: A netease music client for emacs.
Do you want to make Emacs a real "operating system"?
Do you want to live in Emacs more comfortably?
Do you want to revolutionize the capabilities of Emacs?