I built org-ai using Python which exposes an AI chat interface through a simple CLI. This makes it a bit clunky when using it from Emacs—I would need to open up an instance of a terminal, activate the virtual environment, and execute the program to start the chat.
Luckily, Emacs is the ultimate editor building material and has a simple way of creating a shell called comint
(command interpreter). Following the guide from Comint: Writing your own Command Interpreter, I was able to put together a simple integration that makes interacting with the python-based chat application more native feeling to emacs.
Links to this note
-
I would guess that a significant amount of software is written for one person and we should celebrate it more.