News for hackers. Stuff that matters.
Re:Hammerspoon – macOS automation with Lua by slumos on Tuesday December 24, 2019 @08:45PM (#21876166)
My idea is to extend fennel-mode with a fennel-hs-mode that will take preprocess code by removing newlines[1] and wrapping in something like

  fennel.eval([=[ (code) ]=])
and then sending to the hs cli.

I haven't done much yet; this is the first time I've tried to write a real Emacs mode. It would be much nicer to have a real Fennel REPL integrated in Hammerspoon, but the above would be enough for things like eval-last-sexp and org-babel-eval.

[1] Sadly, the hs cli does not handle multi-line strings.

There are no comments on this comment yet.