juxt

borkdude 2020-06-03T15:43:11.135700Z

any asciidoc modes for emacs that are maintained?

dominicm 2020-06-03T15:43:38.135900Z

I think most juxters used the adoc mode, then stopped because it made text different sizes.

➕ 1
borkdude 2020-06-03T15:48:20.137200Z

then stopped, means, they don't use any modes, just text mode?

Johanna 2020-06-03T15:49:40.138900Z

I don't use any modes for asciidoc, I tried it and didn't find it readable.

borkdude 2020-06-03T15:50:36.139200Z

I find the support in VSCode quite good, but it's not emacs

alexdavis 2020-06-03T16:03:33.141400Z

I (and probably most other juxters) use the asciidoctor.js browser extension and have the file I'm editing open in the browser and use that as a preview, the only emacs config is to center the text and stop overflowing lines getting cut in horrible ways. Only issue is you have to save to see the preview

Lu 2020-06-03T16:23:11.141600Z

Yup I do the same

borkdude 2020-06-03T19:23:37.141900Z

What's the benefit of the browser extension over watching and compiling the file?

alexdavis 2020-06-03T19:37:03.145300Z

Just that it’s all done for you, getting a working setup is just open the file in emacs and space f o to render it, no need to setup a watcher or deal with jruby shenanigans

borkdude 2020-06-03T19:59:25.145600Z

Made myself a babashka watch + refresh browser script. https://github.com/babashka/book/blob/master/script/watch.clj Demo:

alexdavis 2020-06-03T22:12:39.147700Z

Very cool, I’ve found myself using babashka (and kondo) a fair amount recently and I’m very happy with them

alexdavis 2020-06-03T22:13:43.148700Z

Actually could probably make a decent static site tool with babashka + asciidoc, hmm idea...

borkdude 2020-06-03T22:15:24.148900Z

For static sites there's also bootleg which can be used as a pod (cmd line tool as clojure library) in babashka: https://github.com/retrogradeorbit/bootleg A demo: https://github.com/borkdude/michielborkent.nl/blob/master/script/generate.clj

borkdude 2020-06-03T22:16:27.149400Z

it doesn't support asciidoc though. is there a Java / clojure library for asciidoc? maybe it could add it.

alexdavis 2020-06-03T22:41:39.150400Z

We use this, it works but it’s not the most performant and you get some funky errors https://github.com/asciidoctor/asciidoctorj