Running Fennel from Emacs: A Powerful Extension

2025-07-23
Running Fennel from Emacs: A Powerful Extension

This article introduces `require-fennel.el`, an Emacs extension that enables running Fennel (a Lua dialect) within Emacs. It achieves this by communicating with a Fennel REPL, allowing data conversion and function calls between Emacs Lisp and Fennel. The author demonstrates loading Fennel modules, calling Fennel functions, and using Fennel data structures in Emacs Lisp. Furthermore, the extension supports calling Emacs Lisp functions from Fennel, enabling two-way interaction. This allows developers to leverage Fennel's conciseness and Emacs's power for a more robust Emacs environment.

Development