This is some little hack to make Emacs command Nyxt. In particular this provides a function to browse URLs via Nyxt run via Slime.
The dependencies are:
- Slime
- Nyxt (ideally installed via Guix if you are on Linux)
You can find here the blogs that explain in more detail how this works:
- https://ag91.github.io/blog/2021/06/08/emacs-nyxt-and-engine-mode-how-to-browse-urls-via-nyxt-and-slime/
- https://ag91.github.io/blog/2021/06/22/back-to-emacs-while-in-nyxt-how-to-edit-the-web-in-a-lispy-editor/
- https://ag91.github.io/blog/2021/06/29/extending-nyxt-via-emacs-how-to-leverage-common-lisp-wealth-to-get-your-links-as-qr-codes/
- https://ag91.github.io/blog/2021/07/09/org-capture-in-nyxt-taking-notes-while-browsing/
- https://ag91.github.io/blog/2021/07/22/nyxt-to-mold-html-the-first-mix-of-moldable-emacs-and-browsing/
- https://ag91.github.io/blog/2021/07/25/org-roam-and-nyxt-taking-zettelkasten-notes-from-the-web/
Please follow the instructions here: https://github.com/deddu/nyxt-docker
Then set (setq shell-command-switch "-ic")
and add to your .zshrc
file (substitute your user for <your-user>
)
alias nyxt="xterm -e 'xhost +127.0.0.1; docker run -it -p 4006:4006 -v /Users/<your-user>:/root/ --rm bigdeddu/nyxt:2.2.1'"
After that you should have everything to run emacs-with-nyxt
. And make sure Swank or Sly use 0.0.0.0 instead of localhost.