This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-05
Channels
- # announcements (2)
- # babashka (19)
- # beginners (14)
- # biff (10)
- # calva (23)
- # clojure (49)
- # clojure-europe (15)
- # clojure-nl (3)
- # clojure-norway (25)
- # clojure-seattle (1)
- # clojure-uk (4)
- # clojurescript (7)
- # data-science (6)
- # datahike (3)
- # datomic (1)
- # emacs (13)
- # events (2)
- # fulcro (3)
- # graalvm (13)
- # hyperfiddle (32)
- # leiningen (4)
- # lsp (38)
- # malli (1)
- # missionary (34)
- # nbb (28)
- # off-topic (42)
- # other-languages (5)
- # portal (8)
- # practicalli (1)
- # re-frame (3)
- # releases (1)
- # ring (7)
- # shadow-cljs (13)
- # sql (3)
is there any fool who has tried to use Emacs as a library inside of a Clojure app?
there was a guy years ago trying to rewrite the c core of emacs in clojure, but of course googling "rewrite clojure in emacs" is all stuff not about that
I think work stopped on deuce because of https://github.com/hraberg/deuce/issues/20?
Emacs can be used to run Elisp scripts rather than running it as an Editor, so could be used with Clojure tools.build or babashka, using their exec function that creates a shell out to the command line. Could be useful for batch processing of text from Clojure.
Clj2el would work for that I guess. You write org-element code in clojure, transpile it to elisp and call Emacs in batch mode (either new instance or daemon). I don't think we can skip that last step anyway, any way you find you'll have to start/use an emacs instance.
You could also check out https://github.com/orgzly/org-java
I want to have a Clojure service that parses org files and serves them over a webserver. I'm using https://github.com/200ok-ch/org-parser/ right now, but it's not complete
looks like the org-java
repo is GPLv3 with no classpath exception, and I'm not sure I want to open source my code yet
IANAL, but I'm rather sure the GPL (not to be confused with the AGPL!) doesn't trigger the most of the license provisions if you don't distribute the code. Not even GPLv3. And running the code in your own server doesn't qualify as distribution from the GPL point of view (hence all the troubles in the past with service/cloud providers doing this kind of thin, and the eventual creation of the AGPL).
you can run emacs as a script. Yes I have done this from other programs. Here is a large build build script for my blog: https://github.com/benjamin-asdf/faster-than-light-memes/blob/main/build-site.el runs with a bb task
(shell "emacs" "-Q" "--script" "build-site.el")
reference: https://www.emacswiki.org/emacs/EmacsScripts