Hi.
Background (you can skip reading this part)
In the last few weeks, a few of us started using Notespace for literate programming.
In Emacs+Cider, it is easy to interact with Notespace, as we can comfortably bind keys to Notespace API function calls, and even provide these calls with the important information of what line the cursor is in.
We want to create a more complete Notespace story for Calva as well. This brings us to the following question.
The question
- We want to create a Calva keybinding that saves the file and then runs
(f)
in the REPL, for a pre-configured functionf
. - We want to create a Calva keybinding that saves the file and then runs
(f nsp line)
in the REPL, for a pre-configured functionf
, wherensp
andline
are external parameters passed by Calva, with the information of the current namespace and the current line where the cursor lies in the file.
How would it be?
Do we need to compile edit Calva’s code and rebuild it, for this kind of extension?