Live in Emacs using Emacs Application Framework (EAF).
“Emacs has a text editor” and the concept of “Living in Emacs” are some of the strong reasons that developers use Emacs. However, using Emacs as an operating system may not be easy for most developers. Many of the packages which make living in Emacs possible work well in a Linux environment but the functionalities will be reduced for non-Linux OS, e.g.
exwm on macOS.
In this article let’s explore Emacs Application Framework (EAF) which is a GUI application framework for Emacs. It works for Linux, Windows, and macOS. However, for macOS it is still partially supported.
- Git clone EAF. In my case, I cloned it to
git clone --depth=1 -b master https://github.com/manateelazycat/emacs-application-framework.git ~/.config/emacs/emacs-application-framework/
2. I use
use-package to install the dependencies. You can refer to the configuration in this repository.
;;; desktop.el --- Desktop management
;;; Desktop management;;; Code:
(use-package epc :defer t :ensure t)
(use-package ctable :defer t :ensure t)
(use-package deferred :defer t :ensure t)
(use-package s :defer t :ensure t)
(eaf-setq eaf-browser-enable-adblocker "true")
(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))(provide 'desktop)
;;; desktop.el ends here
3. Install the dependencies using
With the setup completed, let’s explore EAF.
What You Can Do with EAF
Open PDF File
Use Jupyter Notebook
There are many more that you can do with EAF but the experience is definitely much better if you are using a Linux machine.